• 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: @property and Garbage Collection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: @property and Garbage Collection
      • From: Kevin Bracey <email@hidden>
References: 
 >@property and Garbage Collection (From: Kevin Bracey <email@hidden>)

  • Prev by Date: @property and Garbage Collection
  • Next by Date: Re: [iPhone] can't get views not to slide off by the height of the status bar
  • Previous by thread: @property and Garbage Collection
  • Next by thread: Re: @property and Garbage Collection
  • Index(es):
    • Date
    • Thread