Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > NSSearchField menu disabled

NSSearchField menu disabled
Thread Tools
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Apr 19, 2004, 09:03 PM
 
I have an NSMenu set as the searchMenuTemplate on my NSSearchField, and when it opens it always shows all entries disabled. The recent searches and clear searches stuff works fine, just not any of my menu items for changing the search criteria. I even went so far as to manually enable them at runtime, but that gets ignored as well. Has anyone else seen this? Is there something major I am missing?
     
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Apr 19, 2004, 09:57 PM
 
Now I have noticed that my menu items get enabled once I press return in the search field.

. . . sometimes.
(Last edited by absmiths; Apr 19, 2004 at 10:04 PM. )
     
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status: Offline
Reply With Quote
Apr 22, 2004, 03:51 PM
 
I eventually found a solution to this on the Omni mailing lists. This is a known bug and the only solution is to call:

Code:
[[searchField cell] setSearchMenuTemplate: [[searchField cell] getSearchMenuTemplate]];
Or, in Java,
Code:
searchField.cell().setSearchMenuTemplate(searchField.cell().getSearchMenuTemplate());
Basically a silly Apple bug. This forum sure is slow sometimes.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:09 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2