• 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
bindings and NSNumberFormatter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bindings and NSNumberFormatter


  • Subject: bindings and NSNumberFormatter
  • From: Jeff Gilbert <email@hidden>
  • Date: Wed, 30 Nov 2005 08:25:26 -0600

Hey everybody,

I have an app with an NSTextField bound to a number in my model. The textfield has an NSNumberFormatter with the format for Zero set to an empty string. When I run the app, and the bound value is 0, if the focus leaves the textfield then it shows the grayed-out message "No Selection" rather than a blank field. If I change the Zero formatter to anything non-empty (even a single space) then that value shows up in the field after losing focus. Is this a defect, or is there any workaround?

thanks,
Jeff Gilbert

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Date constants in predicates
  • Next by Date: Re: Tree Data Structure in objc-C?
  • Previous by thread: KVC keys vs acronym accessors
  • Next by thread: How to interrupt a function
  • Index(es):
    • Date
    • Thread