|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
But I really do not want to create any
dependancies between the class in question and NSApp or its delegate.
Date: Wed, 30 Apr 2003 20:34:26 +0200_______________________________________________
Subject: How dangerous is +load?
From: Georg Tuparev <email@hidden>
Here a method that works:
... 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
1186 VR Amstelveen
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.