• 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: split up alloc and init?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: split up alloc and init?


  • Subject: Re: split up alloc and init?
  • From: "Kyle Sluder" <email@hidden>
  • Date: Mon, 11 Feb 2008 09:32:27 -0500

On Feb 11, 2008 3:28 AM, Kyle Sluder <email@hidden> wrote:
> For your purposes, it would make sense to store the result of +alloc,
> then re-assign that variable, passing the stored variable as an
> argument to -init, like the following:

You see, this is why one shouldn't post at 3:30 AM: you don't realize
that you're recommending someone pass around an uninitialized object.
Bit of a chicken and egg situation, eh?

--Kyle Sluder
_______________________________________________

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: 
 >split up alloc and init? (From: John Terranova <email@hidden>)
 >Re: split up alloc and init? (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: finding memory leaks
  • Next by Date: Re: finding memory leaks
  • Previous by thread: Re: split up alloc and init?
  • Next by thread: Re: split up alloc and init?
  • Index(es):
    • Date
    • Thread