Re: Interface Builder (How to list an object instance in "Bind to" popup menu?)
Re: Interface Builder (How to list an object instance in "Bind to" popup menu?)
- Subject: Re: Interface Builder (How to list an object instance in "Bind to" popup menu?)
- From: James Dessart <email@hidden>
- Date: Tue, 21 Dec 2004 16:56:24 -0500
On Tue, 21 Dec 2004 16:49:42 -0500, Jeremy French <email@hidden> wrote:
> I would like to bind the value property of a NSSlider instance to a
> property in Dot.
What you need is an NSObjectController to bind to. It takes care of
notification to the slider, etc. In interface builder, drag an
NSObjectController to the nib window, then from that instance, control
drag to the model object.
Choose the contentObject outlet.
Then, in your NSSlider's value binding, choose the NSObjectController
you just created as the object to bind to, the controller key should
be selection, and the model key should be the name of the key you want
to use.
Hope that helps and was clear.
James
_______________________________________________
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