NSSearchField (configuring cancel action)
NSSearchField (configuring cancel action)
- Subject: NSSearchField (configuring cancel action)
- From: Karim Morsy <email@hidden>
- Date: Sun, 19 Feb 2006 15:19:37 +0100
Hi,
I've implemented search functionality for a table view. it works
fine, but how can I set the action method for the search field's
cancel button ?
obviously this is not possible in interface builder (is it ?) and the
following programmatic approach didn't work:
searchCell= [[searchField cancelButtonCell] retain];
[searchCell setTarget:self];
[searchCell setAction:@selector(cancelSearch)];
as of what I understood from the docs there's a method passed up the
responder chain when the cancel action is invoced. but which method
do I have to implement in order to respond to this event ?
any help would be appreciated.
thanks,
Karim
_______________________________________________
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