• 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: Objective-C 2.0 @property(readonly) memory leak question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C 2.0 @property(readonly) memory leak question


  • Subject: Re: Objective-C 2.0 @property(readonly) memory leak question
  • From: Adam Venturella <email@hidden>
  • Date: Tue, 3 Feb 2009 07:53:13 -0800

Ah! so if I never call upon the accessor, it would never make a copy.
Since it made a copy(once called), it's retained, and thus would be my
responsibility for releasing it.

Thanks for the link!  Didn't even think copy was the issue.


On Tue, Feb 3, 2009 at 7:42 AM, Bill Bumgarner <email@hidden> wrote:
> On Feb 3, 2009, at 7:39 AM, Adam Venturella wrote:
>>
>>   return [collection copy];
>
> http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/copy
>
>
_______________________________________________

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: Objective-C 2.0 @property(readonly) memory leak question
      • From: Bill Bumgarner <email@hidden>
References: 
 >Objective-C 2.0 @property(readonly) memory leak question (From: Adam Venturella <email@hidden>)
 >Re: Objective-C 2.0 @property(readonly) memory leak question (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: garbage collection is ON NSCFDictionary crash
  • Next by Date: Re: Objective-C 2.0 @property(readonly) memory leak question
  • Previous by thread: Re: Objective-C 2.0 @property(readonly) memory leak question
  • Next by thread: Re: Objective-C 2.0 @property(readonly) memory leak question
  • Index(es):
    • Date
    • Thread