• 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: self Changes on Open Panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: self Changes on Open Panel


  • Subject: Re: self Changes on Open Panel
  • From: Uli Kusterer <email@hidden>
  • Date: Wed, 10 Jun 2009 11:48:53 -0700

On 09.06.2009, at 17:48, Greg Guerin wrote:
How do you know -init is only run once?

Are you sure no other init method is run? Like maybe initWithCoder:?


As a general rule, when you wonder where an object is coming from, it helps to have a look at any and all -init methods the class has. In particular init and initWithCoder:. In addition to that, objects can be created by a call to copy or mutableCopy, so you can get very interesting behaviour if your base class implements NSCopying and you forgot to override that in the subclass and do your own additional work.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

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: self Changes on Open Panel [solved]
      • From: "K. Darcy Otto" <email@hidden>
References: 
 >Re: self Changes on Open Panel (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: Organising visual content of NSPopUpButton
  • Next by Date: Re: NSColorWell and bindings
  • Previous by thread: Re: self Changes on Open Panel
  • Next by thread: Re: self Changes on Open Panel [solved]
  • Index(es):
    • Date
    • Thread