Re: Formatter for angle display?
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