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
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 mails | Author | Date |
|---|---|---|
| Jeremy French | Dec 21, 22:49 | |
| James Dessart | Dec 21, 22:56 | |
| mmalcolm crawford | Dec 21, 23:04 |






Cocoa mail archive

