> On Nov 2, 2015, at 12:03 PM, Quincey Morris 
> <quinceymor...@rivergatesoftware.com> 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 that I did not have that many places in my model 
where this was required.) A value transformer works with NSNumber but not a 
double.

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 
change the double into a NSNumber.

--Richard Charles


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to