Binding an NSTextField to an NSNumber value fails with 'Switzerland (French)' localization
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