Re: Clarification on accessors? (was: Yet another memory management question)
Re: Clarification on accessors? (was: Yet another memory management question)
- Subject: Re: Clarification on accessors? (was: Yet another memory management question)
- From: Charles Srstka <email@hidden>
- Date: Thu, 9 Jul 2009 16:52:29 -0500
On Jul 9, 2009, at 4:29 PM, Ben Trumbull wrote:
It may be that under certain circumstances (dictionary storage,
synthesized properties on 10.5, etc) that you must use an accessor
method even in init & dealloc. That requires more care, is more
error prone, and less flexible. In particular, additional behavior
should not be adorned to the accessor, and the accessor must never
leak knowledge of the receiver to a third party during init or
dealloc. Basically, these accessors must be very very boring.
But if it's a synthesized accessor, wouldn't it be pretty much a given
that that would be the case?
Charles
_______________________________________________
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