Appropriate Use of NSFormatter?
Appropriate Use of NSFormatter?
- Subject: Appropriate Use of NSFormatter?
- From: Jericho Hasselbush <email@hidden>
- Date: Sun, 29 Nov 2009 12:44:31 -0800
I've been considering the best way to integrate user's choice of units in my app (metric and standard) and have yet to figure out a clean way of doing it.
I am considering using a custom formatter that will change it's behavior based on a globally accessible variable holding the type of system - probably in the App Delegate, since the app will store the data in the same units no matter what. The respective controllers can watch the keyValue of the app delegate and update their respective views when the App Delegate's variable changes.
Is this an acceptable use of a custom formatter, or am I making this harder than necessary?
---
Jericho Hasselbush
Ungrounded Software
http://un-grounded.com/
_______________________________________________
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