Re: Problems with tabbing between custom text fields
Re: Problems with tabbing between custom text fields
- Subject: Re: Problems with tabbing between custom text fields
- From: Allan Odgaard <email@hidden>
- Date: Sun, 21 Mar 2004 16:21:34 +0100
On 21. Mar 2004, at 16:02, Alex Penner wrote:
I've initially tried to initialize my field in initWithFrame: - that
caused SIG11 for me. You did that in initWithCoder. What is a
difference here?
initWithCoder: is the initializer used when objects are
'de-serialized', i.e. read from the Nib created by Interface Builder.
There is a FAQ entry about it somewhere in the IB documentation,
basically it calls initWithCoder: for all objects except custom view
subclasses, these receive the initWithFrame: IIRC (and probably
NSObject subclasses you instantiate, which just gets a normal init) --
they recommend placing init code in awakeFromNib, as that message is
always sent to the object, and is sent after all other setup (like
creating connections between objects).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.