Strange NSNumberFormatter behavior

2009-11-10 Thread Karolis Ramanauskas
Good evening, My question involves the code below: NSNumberFormatter * nf = [[[NSNumberFormatter alloc] init] autorelease]; [nf setNumberStyle:NSNumberFormatterSpellOutStyle]; NSLog(@'%@', [nf numberFromString:@one]); // - LINE A NSLog(@'%@', [nf numberFromString:@one two]); // - LINE B

Re: NSNumberFormatter behavior

2008-05-07 Thread Frédéric Testuz
Le 6 mai 08 à 03:29, Chataka a écrit : Hello, My app has a NSTextField on a UI window to accept user input and to display a NSNumber in a model object. The NSTextField and the NSNumber are bound using Cocoa Bindings, and the NSTextField is set a NSNumberFormatter. It is a very simple UI

NSNumberFormatter behavior

2008-05-05 Thread Chataka
Hello, My app has a NSTextField on a UI window to accept user input and to display a NSNumber in a model object. The NSTextField and the NSNumber are bound using Cocoa Bindings, and the NSTextField is set a NSNumberFormatter. It is a very simple UI but I have two problems regarding this