discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCell bug


From: Fred Kiefer
Subject: Re: NSCell bug
Date: Tue, 27 Feb 2007 13:09:14 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20060911)

Xavier Glattard schrieb:
> Andreas Höschler <ahoesch <at> smartsoft.de> writes:
> 
>> Hello all,
>>
>> I am still trying to make the latest svn download ready for productive 
>> usage (fixing  bugs). I am currently working on the following problem. 
>> I have a NSTextField with NSNumberFormatter. I have set the delegate of 
>> this text field to my controller object and implemented.
>>
>> - (void)controlTextDidChange:(NSNotification *)obj
>> {
>>      NSLog( <at> "value % <at> ", [valueField objectValue];
>> }
>>
>> This logs "value (nil)" when typing numbers into the field.. The 
>> problem is that _cell.has_valid_object_value is NO 
> (...)
> 
> The TextField is validated in textDidEndEditing:
> IMO its not a bug :-)
> (see Cocoa reference)
> 
> You should catch NSControlTextDidEndEditingNotification instead of
> NSControlTextDidChangeNotification
> 

I second this opinion. Still it is strange why your code worked
correctly on Cocoa.

Fred





reply via email to

[Prev in Thread] Current Thread [Next in Thread]