Re: if statement causing 32 Byte leak?
Re: if statement causing 32 Byte leak?
- Subject: Re: if statement causing 32 Byte leak?
- From: mmalc Crawford <email@hidden>
- Date: Sat, 09 Jan 2010 18:47:30 -0800
On Jan 9, 2010, at 6:34 pm, Graham Cox wrote:
> 'string' does not contain 'new', 'alloc' or 'copy' therefore you do not own it.
>
That summary is just very subtly wrong(*), which is why people are generally discouraged from paraphrasing the rules.
That said, there is indeed really very little to remember:
<http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html#//apple_ref/doc/uid/20000994>
mmalc
Hint: See <http://developer.apple.com/mac/library/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSEntityDescription_Class/NSEntityDescription.html#//apple_ref/occ/clm/NSEntityDescription/insertNewObjectForEntityForName:inManagedObjectContext:>
_______________________________________________
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