Re: @property problem
Re: @property problem
- Subject: Re: @property problem
- From: "Kyle Sluder" <email@hidden>
- Date: Mon, 11 Feb 2008 17:32:30 -0500
On 2/11/08, Brian Christensen <email@hidden> wrote:
> On Feb 11, 2008, at 16:28, Kyle Sluder wrote:
>
> > Also, you have not specified a memory management method in your
> > @property declaration, which you must do if you are not using garbage
> > collection.
>
> It defaults to "assign." Declaring that for a BOOL would be
> (unnecessarily) redundant.
Not true for non-GC code (which is what I specified). The compiler
will issue a warning if you do not explicitly declare a memory
management model, because "This encourages you think about what memory
management behavior you want and type it explicitly." (From
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_3.html#//apple_ref/doc/uid/TP30001163-CH17-SW2
).
--Kyle Sluder
_______________________________________________
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