• 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
NSControl Multiple Values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSControl Multiple Values


  • Subject: NSControl Multiple Values
  • From: Richard Charles <email@hidden>
  • Date: Mon, 02 Nov 2015 11:55:32 -0700

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 value of 20.0. The other selected object has a double value of 20.001.

I need the control to show these two values are equal (display 20.0). The control has a NSNumberFormater set to show 1 decimal place which works fine when each object is selected individually. But when both objects are selected the control displays “Multiple Values”.

I don’t see any NSControl methods that deal with determining equality. I don’t see any methods in NSArrayController that would help either.

Does anyone know how to fix this?

--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>
  • Prev by Date: Re: EXC_BAD_ACCESS puzzle when not running as test bundle
  • Next by Date: Re: NSControl Multiple Values
  • Previous by thread: Re: EXC_BAD_ACCESS puzzle when not running as test bundle
  • Next by thread: Re: NSControl Multiple Values
  • Index(es):
    • Date
    • Thread