Re: Newbie question: instantiate a class in its header file OR in IB
Re: Newbie question: instantiate a class in its header file OR in IB
- Subject: Re: Newbie question: instantiate a class in its header file OR in IB
- From: Jens Alfke <email@hidden>
- Date: Wed, 25 Jun 2008 08:44:02 -0700
On 25 Jun '08, at 7:01 AM, JArod Wen wrote:
So if I have initialization method in the class, I need not to
instantiate it explicitly in code, correct? IB will create the
instant using the initialization method. Is this correct?
You don't need a custom -init method for an object in a nib. If you
have an instance of your class in a nib, then it'll be loaded out of
the nib at runtime. If your object needs to do some kind of setup
after it's loaded, it should implement -awakeFromNib and do it there.
—Jens_______________________________________________
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