i have an nsmenu and a search field connect by searchMenuTemplate. the menu shows up but whenever i click something in the nsmenu i get an NSReceiverEvaluationScriptError 3. There isnt event anything in the choose menu item handler…by the way i’m trying to recreate the search field in itunes. The documentation include virtually no information on this, besides making a recent searches menu, which works. But for some reason this doesn’t.
EDIT: now i’m this far,
on awake from nib theObject
call method "setSearchMenuTemplate:" of (text field "text" of window "main") with parameter theObject
end awake from nib
That works, but i still get an error when i click a menu item.
if it helps anyone, i just read that this problem happened to someone with a popup button, but the way they fixed it was setting choose menu item for the popup button instead of each menu item, but i can’t do that with an NSMenu.