Re: [Foo new] vs [[Foo alloc] init]:
Re: [Foo new] vs [[Foo alloc] init]:
- Subject: Re: [Foo new] vs [[Foo alloc] init]:
- From: "Hamish Allan" <email@hidden>
- Date: Sat, 16 Feb 2008 14:06:04 +0000
On Feb 16, 2008 1:31 PM, Gregory Weston <email@hidden> wrote:
> I'll turn the question around, though: What's a good reason *to* use
> new?
Well, as the documentation mentions, it saves a discard and re-alloc
in those cases that the allocation requirements of the object are not
known until initialisation parameters are passed.
But that's not a reason to use "+new". That's a reason to use
"+new...". Though personally, I don't think I've ever used either.
Hamish
_______________________________________________
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