• 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: Mike Abdullah <email@hidden>
  • Date: Wed, 18 Jan 2012 15:50:28 +0000

On 17 Jan 2012, at 16:38, Vincent Habchi wrote:

> Sean,
>
>> NSNumberFormatter does not support that.  But writing such a custom formatter would be a few dozen line of code, and pretty straightforward.
>
> I agree this is fairly simple; I just wanted to avoid the task altogether! :)
>
> BTW, such custom formatter would, of course, not be usable in IB, would it?

The best you can hope for there is either:

A) Subclass NSNumberFormatter. Use IB to set an existing number formatter to use your subclass

B) Subclass NSFormatter directly. Drag a plain NSObject into the xib from the library. Set it to be your subclass. Hook up the formatter outlet of a text field or similar, to it.

_______________________________________________

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>)
 >Re: Formatter for angle display? (From: Sean McBride <email@hidden>)
 >Re: Formatter for angle display? (From: vincent habchi <email@hidden>)

  • Prev by Date: TimeZones
  • Next by Date: iOS on iPad2 for presentation
  • Previous by thread: Re: Formatter for angle display?
  • Next by thread: Re: Formatter for angle display?
  • Index(es):
    • Date
    • Thread