Re: Action in TextFields
Re: Action in TextFields
- Subject: Re: Action in TextFields
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 22 Jun 2003 22:53:48 +0200
On Sonntag, Juni 22, 2003, at 10:26 Uhr, Dustin Voss wrote:
On Saturday, June 21, 2003, at 11:24 PM, Gerriet M. Denkmann wrote:
I have a window with a NSTextField and some other NSControl.
When the user enters text in the text field and hits return, the
action method is called.
But when the user clicks on some other NSControl the text field
action method gets called again. This annoys me.
Currently I do:
[snippage]
But I have the feeling that this is not the correct way to
distinguish between "return entered in text field" and "clicked in
some other control".
Could someone please point me in the right direction?
"Trust your feelings Luke." The correct way to do this is in IB. Set
it to only send the action on enter, rather than on end editing.
Thanks! Excellent idea. Now it works as expected.
Gerriet.
_______________________________________________
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.