• 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
Binding an NSTextField to an NSNumber value fails with 'Switzerland (French)' localization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding an NSTextField to an NSNumber value fails with 'Switzerland (French)' localization


  • Subject: Binding an NSTextField to an NSNumber value fails with 'Switzerland (French)' localization
  • From: Bert Torfs <email@hidden>
  • Date: Tue, 28 Nov 2006 22:44:35 +0100

Weird problem.

I have a column bound to a numeric property of a business object. No problem, as long as I use a 'standard' international number formats (with points and comma's). When I choose 'Switzerland (French)', my set-method receives a null value as soon as I type in a number larger than 999. (For smaller numbers, it works).
If I remove the binding, everything works (except for the fact that my value is not set - of course). Reverting to an English or standard French format works equally well.
I have reproduced it in a small test project - just one object, instantiated in a NIB with a numeric instance variable which is bound to the 'value' property of an NSTextField with an NSNumberFormatter which has to 'localize' checkbox checked. Typing a number larger than 999 makes my setter receive a NIL object. (I can send you this test project if you wish).
Must be something stupid I forgot I guess, but what?
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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: Binding an NSTextField to an NSNumber value fails with 'Switzerland (French)' localization
      • From: Kevin Hoctor <email@hidden>
  • Prev by Date: Re: Re: memory allocation and virtual memory increase
  • Next by Date: Re: Slightly OT: SIGKILL (force quit) and child process termination
  • Previous by thread: Re: NSCalendarDate from CoreData
  • Next by thread: Re: Binding an NSTextField to an NSNumber value fails with 'Switzerland (French)' localization
  • Index(es):
    • Date
    • Thread