• 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: John Terranova <email@hidden>
  • Date: Mon, 11 Feb 2008 08:14:49 -0800


On Feb 11, 2008, at 12:28 AM, Kyle Sluder wrote:

Foo *f = [Foo alloc];
f = [f initWithObject:f];

As you point out six hours later, initWithObject: could render its parameter stale by returning a different object. That would be bad.


	john
_______________________________________________

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: Re: self = [super init] debate.
  • Next by Date: Re: split up alloc and init?
  • Previous by thread: Re: split up alloc and init?
  • Next by thread: Re: split up alloc and init?
  • Index(es):
    • Date
    • Thread