• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSSearchField (configuring cancel action)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Core Data Key-value question
  • Next by Date: freeing data when closing window
  • Previous by thread: Re: NSDrawer bug in interface builder?
  • Next by thread: Re: NSSearchField (configuring cancel action)
  • Index(es):
    • Date
    • Thread