Re: @property and Garbage Collection
Re: @property and Garbage Collection
- Subject: Re: @property and Garbage Collection
- From: Thomas Davie <email@hidden>
- Date: Tue, 25 Jan 2011 10:03:28 +0000
On 25 Jan 2011, at 09:59, Kevin Bracey wrote:
> Hi Guys,
>
> I've been using Retain/Release up til now but I have started my first GC project.
>
> In a Garbage Collected App when using the @property is it correct that I still have to specify (copy) or (retain) or have I missed something? I thought using GC didn't require retain and that everything could just be assigned, but the complier complains.
There is still a semantic difference between simply keeping hold of a reference to something, and copying that something, even if you have a neat tool keeping track of whether you still hold a reference.
Bob_______________________________________________
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