Re: Recommendation for keeping track of money in Core Data
Re: Recommendation for keeping track of money in Core Data
- Subject: Re: Recommendation for keeping track of money in Core Data
- From: Ricky Sharp <email@hidden>
- Date: Tue, 17 Jan 2006 10:52:26 -0600
On Tuesday, January 17, 2006, at 10:05AM, Mike Zornek <email@hidden> wrote:
>Thanks for everyone's help and suggestions on this. I did start using
>NSDecimalNumber last night and it appears to be working just as I'd hoped.
>
>I've yet to look into the international aspect too much, but I did notice a
>checkbox on the NSNumberFormater for localizesFormat. This appear to swap in
>the user's preferred money characters. Like the documentation says, it's
>just for formatting so it's doesn't convert US dollars to Euro or anything
>like that -- but for my needs it should be quite useful.
What we've done at my day job was to pick a normalized format (as you've done). Although we stuck with an integer value.
For localization, our product currently only supports one currency format across the entire product. So, in the UI, we place the currency symbol as static text next to the field to accept the number entry. This reminds our users what currency values they are expected to enter (i.e. they'd need to do appropriate conversions).
If you have the need to work with multiple currencies, you may also want to consider storing the locale code for each individual currency value you store. Users would then be able to enter in any supported currency and your product can then for display purposes, normalize values to a particular locale.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden