Re: Protecting memory
Re: Protecting memory
- Subject: Re: Protecting memory
- From: Crispin Bennett <email@hidden>
- Date: Thu, 26 Jul 2012 06:36:35 +1000
On 26/07/2012, at 2:52 AM, Jens Alfke wrote:
Yes, but then (if not using ARC or GC) you have to autorelease it. Some people prefer +arrayWithArray because it's only one _expression_. I tend to use [[x copy] autorelease], but it's a matter of taste.
—Jens
Ah yes, good point. It's sometimes surprising how comprehensively I've dropped manual MM considerations since ARC arrived. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden