• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: When do NSImageRep subclasses register themselves?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: When do NSImageRep subclasses register themselves?
      • From: Chaz McGarvey <email@hidden>
References: 
 >Re: When do NSImageRep subclasses register themselves? (From: Ondra Cada <email@hidden>)
 >Re: When do NSImageRep subclasses register themselves? (From: Chaz McGarvey <email@hidden>)
 >Re: When do NSImageRep subclasses register themselves? (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: When do NSImageRep subclasses register themselves?
  • Next by Date: NSSound instability on 10.2.8
  • Previous by thread: Re: When do NSImageRep subclasses register themselves?
  • Next by thread: Re: When do NSImageRep subclasses register themselves?
  • Index(es):
    • Date
    • Thread