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"]); // <

Re: NSNumberFormatter behavior [Solved]

2008-05-08 Thread Chataka
F. Testuz, Thank you very much for your reply. My both problems were fixed. I guess the second problem was the same error. I guess the alert panel is shown only when nil is set through an IB element, and is not shown when it is set within the code. -Chataka On 2008/05/08, at 4:06, Frédéric Test

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 b

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 NST