Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSNumberFormatter 10.0+ vs. 10.4+



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.