• 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
+ initialize docs conflict?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

+ initialize docs conflict?


  • Subject: + initialize docs conflict?
  • From: Ricky Sharp <email@hidden>
  • Date: Mon, 31 Jan 2005 17:53:04 -0600

When reading up on NSObject's class method 'initialize', I found these two quotes in the docs:

"Each class receives the initialize message just once from the runtime system."

"Normally the runtime system sends a class just one initialize message. However, if for some reason an application or the runtime system generates additional initialize messages, it is a good idea to prevent code from being invoked more than once"

I can see where an application developer may (accidentally?) have code to call initialize more than once. But why do the docs have conflicting statements regarding the runtime?

I have no problem modifying my initialize implementations with a one-shot flag if need be. However, if the runtime is only ever suppose to call initialize once, I'll then file a bug against the docs.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: + initialize docs conflict?
      • From: Charlton Wilbur <email@hidden>
    • Re: + initialize docs conflict?
      • From: Bill Cheeseman <email@hidden>
  • Prev by Date: Re: CFPasteboardResolveAllPromisedData crash
  • Next by Date: Re: Undocumented Foundation selector not recognized?
  • Previous by thread: More NetSocket problems...
  • Next by thread: Re: + initialize docs conflict?
  • Index(es):
    • Date
    • Thread