• 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 recent searches menu questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSSearchField recent searches menu questions


  • Subject: NSSearchField recent searches menu questions
  • From: John Clayton <email@hidden>
  • Date: Wed, 5 Nov 2003 13:07:54 -0500

Hi,

I have figured out how to set the search menu template for the recent searches menu associated with a search field. But, I have some separators that I'd like to disappear when the user clears the recents and the menu displays the "no recents" menu item. I can't figure out how to get notified that the recents have been cleared, or added to. NSSearchField or *Cell, doesn't seem to have any delegate methods other than those inherited from text fields and it doesn't post any notifications.

So, my question: How can I get notified when the recents change? Can I use the defaults system notifcations? Hmmm, maybe yeah. (note to self: try that). My more general question is this: is there a way to watch messages and notifications going back and forth in the runtime so even if something isn't documented you can see what's happening? For example, NSSearchField (or Cell) must be setting the actions of it's menu items that it populated from the template. But what are those actions? I'd like to know how to know.


Thanks.

John Clayton
---------------------------------------
X
---------------------------------------
_______________________________________________
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.

  • Prev by Date: Re: window above main menu bar
  • Next by Date: Framework in application with Xcode ?
  • Previous by thread: Producer / Consumer
  • Next by thread: Framework in application with Xcode ?
  • Index(es):
    • Date
    • Thread