Re: Memory management on returning nil in init
Re: Memory management on returning nil in init
- Subject: Re: Memory management on returning nil in init
- From: email@hidden
- Date: Wed, 23 Jun 2010 15:47:49 -0400
On Jun 21, 2010, at 2:44 PM, Scott Anguish wrote:
> The old style
>
>> if (self = [super init])
>
> will cause a warnings with certain settings now and in the future.
>
Does this also apply to code such as:
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])
should it be:
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self)
and any other initializers?
Thanks,
Dave
_______________________________________________
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