Re: Problem with NSNumberFormater
Re: Problem with NSNumberFormater
- Subject: Re: Problem with NSNumberFormater
- From: Claudius Sailer <email@hidden>
- Date: Thu, 19 Sep 2002 20:27:00 +0200
Am Donnerstag, 19.09.02 um 19:35 Uhr schrieb Matt Neuburg:
Try the control delegate's controlTextDidChange: method or the window
delegate's windowDidUpdate: method. m.
Thanks for this tip.
I tested controlTextDidChange. Code:
if (([[curName stringValue] length] > 0) && ([[curValue
stringValue] length] > 0) && ([curValue doubleValue] > 0)) {
[calcButton setEnabled:YES];
} else {
[calcButton setEnabled:NO];
}
the result is, that the NSForm Cell 2 which is formatted with
NSNumberFormater brings after the first number I typed automatically a
complete result:
1 --> 1.0000
2 --> 2.0000
But I want to type 1,2345 without the formatation because I have in the
settings "On end editing".
bye
Claudius
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.