RE: outlet initialization
RE: outlet initialization
- Subject: RE: outlet initialization
- From: "Yang, Liu" <email@hidden>
- Date: Tue, 22 Apr 2003 16:03:56 -0400
I am new to Cocoa. I plan to use "awakeFromNib" to set my outlet init value
after the nib is loaded. Is that a good idea?
If use the "set<ivar>" mechanism, where should this method be implemented?
in the controller that the outlet is connected to? And when will this method
be called?
Thanks.
- Liu
-----Original Message-----
From: John C. Randolph [
mailto:email@hidden]
Sent: Tuesday, April 22, 2003 3:29 PM
To: Sascha Kratky
Cc: email@hidden
Subject: Re: outlet initialization
On Tuesday, April 22, 2003, at 12:22 PM, Sascha Kratky wrote:
>
Hi,
>
>
I have a basic question concerning outlet setting when
>
a nib file is loaded. Are the outlet instances variables
>
written to directly or is the takeValue:forKey: selector used for
>
outlet assignment?
If there's a method named set<ivarname>, it will be used. Otherwise,
the ivar is set directly.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.
_______________________________________________
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.