NSControl Multiple Values

2015-11-02 Thread Richard Charles
I have a single control with a double value. The control is bound to an array controller selection. When multiple objects are selected, if the double values are not the same, the control (NSTextField) will display “Multiple Values”. One of the array controller’s selected objects has a double

Re: NSControl Multiple Values

2015-11-02 Thread Quincey Morris
On Nov 2, 2015, at 10:55 , Richard Charles wrote: > > Does anyone know how to fix this? The simplest way is probably to create a derived property in your data model that is the correctly-rounded value to display. Alternatively, I think you could write a value

Re: NSControl Multiple Values

2015-11-02 Thread Richard Charles
> On Nov 2, 2015, at 12:03 PM, Quincey Morris > wrote: > > The simplest way is probably to create a derived property in your data model > that is the correctly-rounded value to display. My data model actually has lots of properties. Creating a derived

Re: NSControl Multiple Values

2015-11-02 Thread Quincey Morris
On Nov 2, 2015, at 12:51 , Richard Charles wrote: > > So that is interesting that NSControl will work with a double. My custom > binding works with double values. But after doing a little searching on the > web it appears that value transformers do not work with double

Re: NSControl Multiple Values

2015-11-02 Thread Richard Charles
> On Nov 2, 2015, at 12:03 PM, Quincey Morris > wrote: > > The simplest way is probably to create a derived property in your data model > that is the correctly-rounded value to display. Well I ended up using a derived property rounding the double to the