• 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: Quincey Morris <email@hidden>
  • Date: Mon, 02 Nov 2015 11:03:52 -0800
  • Feedback-id: 167118m:167118agrif8a:167118s0ahZOxSq0:SMTPCORP

On Nov 2, 2015, at 10:55 , Richard Charles <email@hidden> 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://developer.apple.com/library/prerelease/mac/documentation/Cocoa/Conceptual/ValueTransformers/ValueTransformers.html

(Note that this document was last updated in 2007. AFAIK it’s all still current, but a certain amount of caution is prudent.)

_______________________________________________

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: Richard Charles <email@hidden>
    • Re: NSControl Multiple Values
      • From: Richard Charles <email@hidden>
References: 
 >NSControl Multiple Values (From: Richard Charles <email@hidden>)

  • Prev by Date: NSControl Multiple Values
  • Next by Date: Re: NSControl Multiple Values
  • Previous by thread: NSControl Multiple Values
  • Next by thread: Re: NSControl Multiple Values
  • Index(es):
    • Date
    • Thread