Re: split up alloc and init?
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