Using NSSearchField's setRecentSearches: method.
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