• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSControl Multiple Values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSControl Multiple Values


  • Subject: Re: NSControl Multiple Values
  • From: Richard Charles <email@hidden>
  • Date: Mon, 02 Nov 2015 13:51:22 -0700
  • X_v_e_cd: 8bf027c02d3383a87c3143003535c8be
  • X_v_r_cd: bf4d55a1171d4a31f3864d85e3238b1a

> On Nov 2, 2015, at 12:03 PM, Quincey Morris <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSControl Multiple Values
      • From: Quincey Morris <email@hidden>
References: 
 >NSControl Multiple Values (From: Richard Charles <email@hidden>)
 >Re: NSControl Multiple Values (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Crash running C code built on OS X El Capitan in Xcode 7
  • Next by Date: Re: Crash running C code built on OS X El Capitan in Xcode 7
  • Previous by thread: Re: NSControl Multiple Values
  • Next by thread: Re: NSControl Multiple Values
  • Index(es):
    • Date
    • Thread