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