Re: NSSearchField search template through IB
Re: NSSearchField search template through IB
- Subject: Re: NSSearchField search template through IB
- From: Jeremy Dronfield <email@hidden>
- Date: Tue, 24 Feb 2004 11:50:36 +0000
I answered a question on this recently. Here's what I said:
In IB, create a menu (by dragging a menu off the palette into your nib
window). Connect your search field's searchMenuTemplate outlet to the
menu. Then, to have your menu remember recent searches, add three
items to the menu, with the following titles and tags:
"Recent Searches:", tag 1000
"Recents", tag 1001
"Clear Recent Searches", tag 1002
That's all. The API will handle the rest for you automagically.
On 23 Feb 2004, at 7:14 pm, Francisco Tolmasky wrote:
What are the details of setting the search template menu through IB?
Every time I set it, all my options are disabled for some reason.
Regardless of whether they have preset tags or are just custom items
(to implement Mail-like limitations). Is there anything I'm forgetting
to do. Also, when I set the tags in IB, do I have to just set the
equivilant number (for example 1000 instead of
NSSearchFieldRecentsTitleMenuItemTag) or is there a way to write that
out in IB?
Thanks in advance,
Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
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.
_______________________________________________
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.