On Jan 21, 2009, at 2:31 PM, Nick Zitzmann wrote:


On Jan 21, 2009, at 3:06 PM, Brooke Gravitt wrote:

The good news is I'm not a *complete* idiot, as it appears the option
just isn't there for the iPhone/iTouch.

Bad news is I *still* have no clue how to do what I'd like to.

I'm going to dig into the docs again, but if anyone can clue-bat me
into knowledge-ness, I'd be really grateful.


You could always attach the formatter manually, like this: (written in Mail, untested, use at your own risk, and all that)

- (void)awakeFromNib
{
NSNumberFormatter *formatter = [[[NSNumberFormatter alloc] init] autorelease];
        
// Normally you'd have to set the formatter behavior here, but this isn't necessary on the iPhone/iPod
        [formatter setNumberStyle:NSNumberFormatterDecimalStyle];
        [someTextField setFormatter:formatter];
}


Note that none of this is truly applicable to the iPhone - there is no NSTextField on the iPhone, and UITextField works quite a bit differently (there is no formatter, for example, but only the ability to set what kind of keyboard appears when it becomes the first responder).


Glenn Andreas                      [email protected]
 <http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build, mutate, evolve, animate



_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to