Text field action


(Jonas Whale) #1

I made a script to choose a command from all my libraries.

It triggers this dialog asking the user to enter the string to search:

For now, the text field is set like this:

searchField's setTarget:me
searchField's setAction:"updatePopupMenu:"

I would like to set the action of the text field to be sent when the user hit tab instead of return.
Can textDidEndEditing be of any help with this?
And how to implement it?


(Shane Stanley) #2

Try this:

searchField's |cell|()'s setSendsActionOnEndEditing:true

(Jonas Whale) #3

Perfect, as always!

:wink: