|
From: | Andreas Höschler |
Subject: | Re: NSCell bug |
Date: | Tue, 27 Feb 2007 21:12:14 +0100 |
The TextField is validated in textDidEndEditing: IMO its not a bug :-) (see Cocoa reference) You should catch NSControlTextDidEndEditingNotification instead of NSControlTextDidChangeNotificationI second this opinion. Still it is strange why your code worked correctly on Cocoa.
I haven't read the spec. But even without having done so I would say that posting a textDidChange notification is not of much use if the delegate method is not able to figure out to what the value had been changed. I don't know whether Apple is calling validateEditing, but they definitely make sure that objectValue reflects the changes made before this notification is posted.
Regards, Andreas
[Prev in Thread] | Current Thread | [Next in Thread] |