Shared User Defaults and NSStepper

Chad Armstrong edenwaith at mac.com
Thu Oct 18 21:31:45 PDT 2007


In my application, I have an NSSlider in the Preference window, which  
I want to be able to set the Increment Amount for an NSStepper.  I'm  
making use of Shared Defaults bindings, however, it appears that the  
Increment Amount is not one of the values that is supported by  
bindings (however, the min value and max values are supported).

What would be a good method for the NSStepper to adjust it's  
Increment Amount value whenever the NSSlider is changed in the  
Preference window?  Should I avoid using the Shared Default bindings  
in this case and use a notification instead?  Or is there a way to  
programatically bind the NSSlider's value to the NSStepper's  
Increment Amount value?

Regards,

Chad


More information about the MacOSX-dev mailing list