Re: Binding different elements of an UI.
Re: Binding different elements of an UI.
- Subject: Re: Binding different elements of an UI.
- From: Stephen Deken <email@hidden>
- Date: Sat, 2 Sep 2006 12:08:20 -0500
I'm wondering if there's a way to bind the different elements of a
UI together. (For example, have a NSTextField that is visible only
when a certain checkbox is checked or radio button selected.)
Would I have to make an outlet for a controller or the document and
connect the checkbox to the outlet and a "toggle" action or something?
Create an instance of NSObjectController in the nib file, and bind
your values to that. This is called 'Cocoa Bindings'. Look at the
"Bindings" section of the inspector pane for the UI elements in this
example .nib file.
--sjd;
Attachment:
Example.zip
Description: Zip archive
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden