Re: How dangerous is +load?
On Wednesday, Apr 30, 2003, at 15:01 US/Eastern, Hasan Diwan wrote: + (void)initialize { [super initialize]; // may not be needed [[NSNotificationCenter defaultCenter] addObserver: self selector:@selector(configureTestingUI:) name:NSApplicationDidFinishLaunchingNotification object:nil]; } The problem with this approach is that you must be sure that some class method is called on this class before the NSApplicationDidFinishLaunchingNotification notification is posted. -- http://homepage.mac.com/clarkcox3/ clarkcox3@mac.com Clark S. Cox, III _______________________________________________ cocoa-dev mailing list | cocoa-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev Do not post admin requests to the list. They will be ignored.
participants (1)
-
Clark S. Cox III