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

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


  • Subject: Re: Binding an NSTextField to an NSNumber value fails with 'Switzerland (French)' localization
  • From: Kevin Hoctor <email@hidden>
  • Date: Wed, 29 Nov 2006 00:06:20 -0600


On Nov 28, 2006, at 3:44 PM, Bert Torfs wrote:

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?

Not so weird actually. I reported this same issue a few days ago (Localized numbers 1000 and over not returned). Here was the only response I got:


I filed an Apple bug report (3478533) about this back in 2003. It remains open.

Martin Wennerberg
Norrkross Software

I did also find this workaround, but it didn't work for me: http://lists.apple.com/archives/cocoa-dev/2005/Jul/msg02076.html

If anyone has a way to make this work, please help Bert and me. It's annoying that the only solution is to wait for a fix from Apple. Someone (smarter than me) must have a solution.

Peace,

Kevin Hoctor
No Thirst Software
http://nothirst.com



_______________________________________________

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


References: 
 >Binding an NSTextField to an NSNumber value fails with 'Switzerland (French)' localization (From: Bert Torfs <email@hidden>)

  • Prev by Date: RE: Problem drawing directly to bitmap rep using NSGraphicsContext
  • Next by Date: Re: QTMovie setAttribute
  • Previous by thread: Binding an NSTextField to an NSNumber value fails with 'Switzerland (French)' localization
  • Next by thread: Re: Cocoa-dev Digest, Vol 3, Issue 1405
  • Index(es):
    • Date
    • Thread