Re: Accessors Question
Re: Accessors Question
- Subject: Re: Accessors Question
- From: mmalc crawford <email@hidden>
- Date: Thu, 12 Jun 2008 13:17:59 -0700
On Jun 12, 2008, at 12:20 PM, Jeff LaMarche wrote:
Out of curiosity, does anyone know what the synthesized accessors
look like when you specify retain? Are they
'
The retain/autorelease policy is dictated by the atomicity of the
property.
By default, object properties are returned with retain/autorelease; if
you specify 'nonatomic' then they're simply returned.
<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_3.html#//apple_ref/doc/uid/TP30001163-CH17-SW2
>
For a discussion of other aspects of accessor methods, see
<http://www.stepwise.com/Articles/Technical/2002-06-11.01.html>
(although some of that is now out-of-date).
mmalc
_______________________________________________
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