Re: Confirming NSTextField when a button is pressed
Re: Confirming NSTextField when a button is pressed
- Subject: Re: Confirming NSTextField when a button is pressed
- From: Daniel Todd Currie <email@hidden>
- Date: Thu, 11 Nov 2004 10:39:32 -0800
I would say it is only supposed to happen if that's the way you coded
it. There is no default behavior as far as I know for restoring old
text in an NSTextField.
If you want to execute something before processing a click, you'll
probably have to subclass the NSButton and override the -mouseDown:
method. However, I suspect there is an easier way to do what you want.
Perhaps if you were more clear on what you are trying to accomplish...
-- DTC
On 2004 Nov 10, at 21:10, Andrew White wrote:
In IB, I have an NSTextField and an NSButton. When I run the app, if
I enter text in the text field (not pressing return) and then click
the button, the old text is restored and controlTextDidEndEditing is
not fired.
Is this supposed to happen?
How can I make clicking the button cause the app to accept the edited
text before processing the button click?
Thanks
--
Andrew White
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden