Re: Is a good practice to alloc an object and defer the initialization to another object?
Re: Is a good practice to alloc an object and defer the initialization to another object?
- Subject: Re: Is a good practice to alloc an object and defer the initialization to another object?
- From: Scott Ribe <email@hidden>
- Date: Wed, 10 Feb 2010 22:34:31 -0700
- Thread-topic: Is a good practice to alloc an object and defer the initialization to another object?
> id obj;
> if (.....)
> obj = [Class1 alloc];
> else
> obj = [Class2 alloc];
> obj = [obj initWithFoo:.... bar:....];
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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