Changeset 5448

Show
Ignore:
Timestamp:
03/20/08 14:59:03 (4 months ago)
Author:
morris
Message:

Load libwired in -init instead

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredAdditions/trunk/WNApplication.m

    r4982 r5448  
    3131@implementation WNApplication 
    3232 
    33 + (void)load { 
    34         wi_initialize(); 
    35 
    36  
    37  
    38  
    39 - (void)finishLaunching { 
     33- (id)init { 
    4034        NSArray                 *arguments; 
    4135        const char              **argv; 
    4236        int                             i, argc; 
    4337         
     38        self = [super init]; 
     39         
     40        wi_initialize(); 
     41 
    4442        arguments               = [[NSProcessInfo processInfo] arguments]; 
    4543        argc                    = (int) [arguments count]; 
     
    5351         
    5452        wi_log_stderr = true; 
     53        wi_log_level = WI_LOG_DEBUG; 
    5554         
    56         [super finishLaunching]
     55        return self
    5756} 
    5857