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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com