Skip navigation.
 
mlRe: Interface Builder (How to list an object instance in "Bind to" popup menu?)
FROM : James Dessart
DATE : Tue Dec 21 22:56:24 2004

On Tue, 21 Dec 2004 16:49:42 -0500, Jeremy French <<email_removed>> 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

Related mailsAuthorDate
mlInterface Builder (How to list an object instance in "Bind to" popup menu?) Jeremy French Dec 21, 22:49
mlRe: Interface Builder (How to list an object instance in "Bind to" popup menu?) James Dessart Dec 21, 22:56
mlRe: Interface Builder (How to list an object instance in "Bind to" popup menu?) mmalcolm crawford Dec 21, 23:04