Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/
email@hidden
Clark S. Cox, III
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: How dangerous is +load? (From: Hasan Diwan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.