NSNumberFormatter 10.0+ vs. 10.4+
NSNumberFormatter 10.0+ vs. 10.4+
- Subject: NSNumberFormatter 10.0+ vs. 10.4+
- From: Jamie Phelps <email@hidden>
- Date: Sat, 26 Jan 2008 16:14:48 -0600
I'm working through Hillegass's Cocoa Programming for Mac OS X and ran
into a problem with NSNumberFormatter that clearly can't be covered in
the text and I haven't been able to find any helpful information from
Google.
There is an NSTableView object in MyDocument.nib, and one column has
an NSNumberFormatter applied set to display percentages. If I set the
version to 10.0+ and enter a value without % into the cell, the app
happily adds a % to make the entered value conform to the expected
format. If I change the version to 10.4+ and enter a value without %,
I get a sheet that says the value does not conform to the expected
format.
So, I have two questions:
1) What is the difference between 10.0+ and 10.4+? Since I'm just
starting out, I don't intend to support anything earlier than Leopard.
2) Is there a graceful way to handle these errors?
Thanks,
Jamie
_______________________________________________
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