I created an AS Studio app without the menu bar items except the application itself - I had items such as File, Edit, Window, Help, etc. deleted because I thought I would never need them at all (darn!).
Now, I am trying to put back the “Help” menu into the menu bar. I could put it there as a Cocoa sub-menu addition and label it as “Help” and it would appear in the menu bar. However, when I add a menu item under it the item is grayed out and unavailable.
How can I activate that item? BTW, I had all Help resources added to the project the standard way via “Add…” to the project method.
You may not be able to get it back as it was originally, but as long as you use the on choose menu item handler, you can program it to still respond to the Cmd-? by using this:
else if theObject = "help_item" then
call method "showHelp:"
I did as you suggested and the Help menu is back on the menu bar with the menu item for help now active --as if it’s never been deleted.
For those who might be encounter the same problem, here’s what I did (based on Bruce’s suggestion):
In the IB, select the menu item under the Help menu of the menu bar then do a “control-drag” and drag it to the “First Responder”. A new window will open up. Look for the “ShowHelp” item and click it then click the button “Connect”. And, that’s it.
I should’ve thought of this earlier, but FYI we have a video of a similar process (connecting a menu item to a preferences window): ib_window_connection.mov