• 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: Clarification on accessors? (was: Yet another memory management question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clarification on accessors? (was: Yet another memory management question)


  • Subject: Re: Clarification on accessors? (was: Yet another memory management question)
  • From: Graham Cox <email@hidden>
  • Date: Thu, 9 Jul 2009 09:37:10 +1000


On 09/07/2009, at 2:51 AM, Caleb Strockbine wrote:

Really? Are -init and -dealloc special in some way that makes it a bad idea to use accessors? If you've got an accessor for myArray, why wouldn't you just say:

self.myArray = nil?


They are special. If a subclass overrides the accessor, what will get called?

--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


References: 
 >Clarification on accessors? (was: Yet another memory management question) (From: Caleb Strockbine <email@hidden>)

  • Prev by Date: Re: Clarification on accessors? (was: Yet another memory management question)
  • Next by Date: Re: Why do I receive KVO notification when new value IS the old value?
  • Previous by thread: Re: Clarification on accessors? (was: Yet another memory management question)
  • Next by thread: CGSRegisterNotifyProc and unlock screen notification
  • Index(es):
    • Date
    • Thread