• 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: Detecting Initialization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting Initialization


  • Subject: Re: Detecting Initialization
  • From: Graham Cox <email@hidden>
  • Date: Thu, 29 Jan 2009 11:39:21 +1100


On 29 Jan 2009, at 11:06 am, David H. Silber wrote:

Is there some means of detecting if an instance has been initialized?

I'm thinking not. Apple's "NSObject Class Reference" says "The init
method defined in the NSObject class does no initialization", and
googling around on the topic has not produced any means of doing so. I
ask here in case someone has some knowledge I have not been able to
find. Even a definitive "No" would help, as I could stop searching for
an answer which doesn't exist.


The answer is no, but in order to comply with Cocoa's non-optional rule on this, if an instance exists, it's initialised. Otherwise you've made a grave error.

WAYTTD?

--Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Detecting Initialization
      • From: "David H. Silber" <email@hidden>
References: 
 >Detecting Initialization (From: "David H. Silber" <email@hidden>)

  • Prev by Date: Re: Detecting Initialization
  • Next by Date: Custom Class Bindings
  • Previous by thread: Re: Detecting Initialization
  • Next by thread: Re: Detecting Initialization
  • Index(es):
    • Date
    • Thread