• 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
Using NSSearchField's setRecentSearches: method.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using NSSearchField's setRecentSearches: method.


  • Subject: Using NSSearchField's setRecentSearches: method.
  • From: Erik Mendoza <email@hidden>
  • Date: Fri, 17 Dec 2004 23:11:09 -0800

Hi,

Thanks again to everyone for all of the help regarding the Unix executable. This question involves a different aspect of the same program. I have a NSSearchField and I'd like to keep track of the recent searches, but I can't seem to figure out any way to do this. From Apple's documentation I would think that the thing to do is use recentSearches: to obtain the current array of recents, append the latest string to that array, and set it using setRecentSearches:. On trying this, nothing seemed to happen, even if I tried just supplying a dummy array for testing purposes. I get the feeling I'll have to use an NSMenu, which will no doubt be more complicated (and which I managed to implement to a very small degree), but then I don't quite understand the need for recentSearches: and setRecentSearches:. Thanks for your help in advance.

Erik

_______________________________________________
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: Re: NSAlert strategy advice
  • Next by Date: Re: Prevent default alert when quitting app w/ many unsaved docs
  • Previous by thread: strange Xcode behavior with keyboard input
  • Next by thread: Re: Cocoa-dev Digest, Vol 1, Issue 430
  • Index(es):
    • Date
    • Thread