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 values unless > you chan

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 desired value after all. (I found out

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 property for each one does not sound app

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 transformer: https://dev

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 val