• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Foo new] vs [[Foo alloc] init]:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: [Foo new] vs [[Foo alloc] init]: (From: Gregory Weston <email@hidden>)

  • Prev by Date: Re: Resize box not letting clicks through
  • Next by Date: Re: Resize box not letting clicks through
  • Previous by thread: Re: [Foo new] vs [[Foo alloc] init]:
  • Next by thread: Re: [Foo new] vs [[Foo alloc] init]:
  • Index(es):
    • Date
    • Thread