Re: Formatter for angle display?
Re: Formatter for angle display?
- Subject: Re: Formatter for angle display?
- From: Sean McBride <email@hidden>
- Date: Tue, 17 Jan 2012 11:13:41 -0500
- Organization: Rogue Research Inc.
On Tue, 17 Jan 2012 16:57:18 +0100, Vincent Habchi said:
>I’m trying to display decimal angles in DMS format (e.g. : 10,5 -> 10°
>30'). Apparently, NSNumberFormatter does not know about angles. Has
>anybody heard of a third party NSFormatter class (NSAngleFormatter?) or
>do I have to develop a custom formatter from scratch?
>
>If nothing exists, I will also file an upgrade request for 10.8.
NSNumberFormatter does not support that. But writing such a custom formatter would be a few dozen line of code, and pretty straightforward.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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