• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Formatter for angle display?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Formatter for angle display?
      • From: vincent habchi <email@hidden>
References: 
 >Formatter for angle display? (From: Vincent Habchi <email@hidden>)

  • Prev by Date: Re: iOS: Adding pinch-zoom to UIImageView
  • Next by Date: Giving NSProgressIndicator a new look?
  • Previous by thread: Formatter for angle display?
  • Next by thread: Re: Formatter for angle display?
  • Index(es):
    • Date
    • Thread