Re: When do NSImageRep subclasses register themselves?
Re: When do NSImageRep subclasses register themselves?
- Subject: Re: When do NSImageRep subclasses register themselves?
- From: lbland <email@hidden>
- Date: Thu, 1 Apr 2004 11:52:10 -0500
On Apr 1, 2004, at 11:02 AM, Kevin Ballard wrote:
Is this true? Can you assume in a subclass's +load that its super has
already loaded?
hi-
from the NSObject docs:
"The order in which classes are loaded is also not guaranteed, to the
point that superclasses arent even guaranteed to be loaded before all
of their subclasses. Because you cant rely on other classes being
loaded at the point when your class is sent a load message, you should
be extremely careful when sending messages to other classes from within
your load method."
It also depends on implementation issues, like if the superclass is in
a framework separate from the subclass, or if it is dyn loaded.
P.S. - I'm not a user of load but other people I know use it for good
reasons...
thanks!-
-lance
_______________________________________________
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.