Re: Performance, Efficiency - Coding practice
Re: Performance, Efficiency - Coding practice
- Subject: Re: Performance, Efficiency - Coding practice
- From: Michael Ash <email@hidden>
- Date: Thu, 28 May 2009 23:23:22 -0400
On Thu, May 28, 2009 at 8:57 PM, Roland King <email@hidden> wrote:
>>
>> So if i have:
>>
>> NSMutableString *title = [[NSString alloc] init];
>> [title setString: @"test"];
>>
>> That would be correct and safe?
>
> No. I hope it would emit warnings on compilation too.
No warning will be emitted. -init is declared to return id.
Mike
_______________________________________________
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