Folks, Here a method that works: +(void)load { [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(configureTestingUI:) name: NSApplicationDidFinishLaunchingNotification object: nil]; } ... but is dangerous because there is no guarantee that at the time the Notification Center is loaded. But I really do not want to create any dependancies between the class in question and NSApp or its delegate. I have done some digging, and it seams Foundation classes are always loaded before the classes from my framework, so in all examples the method above did not caused any trouble. But I would prefer to replace it. (For good or bad, +initialize is not called if no other method is sent to the class). Any suggestions how can I achieve the same functionality in a more kosher way? TIA Georg Tuparev Tuparev Technologies Klipper 13 1186 VR Amstelveen The Netherlands Mobile: +31-6-55798196 _______________________________________________ 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)
-
Georg Tuparev