|Finder's Go menu showing the ⌥ dynamic menu item.|
Here's how to make a dynamic menu item:
- Edit your menu in its .xib file in XCode's Interface Builder.
- Make two menu items, one after the other. The first is the normally visible one, and the second is the alternate choice.
- For the second menu item, edit the properties. Enable the "Alternate" checkbox, and then click in the "Key Equivalent" field and press the Option key.
|Menu Item properties in Interface Builder|
When you run your application, and the menu appears, you will see the first menu item until you press the modifier key (option, for example). The menu will swap the first menu item with the second.