Re: Formatter for angle display?
Re: Formatter for angle display?
- Subject: Re: Formatter for angle display?
- From: Vincent Habchi <email@hidden>
- Date: Wed, 18 Jan 2012 17:05:59 +0100
Mike,
> 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.
I won’t dare (A), because it seems quite complex (I can’t figure out a way to output ° ’ ” instead of , or ., for example).
I always overlook the (B) solution, which seems to be less involved.
Thanks so much, cheers!
Vincent
_______________________________________________
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