Add item to Popup Menu

This seems simple, but how can I add more items to a popup menu in IB?

Hi,

I may not seem to be generously helpful to you but I think I am. Here’s a sincere advise: it’d help you a lot, and those who aim to sincerely help you, if you do a little search of previous posts in this bb first.

When I did a search of “add items to popup menu” in this forum, I found quite a few relevant posts that could very well help you.

This forum is a treasure trove of information that’s easily within your reach. Instead of us reinventing the wheel, please make good use of that resource first. You’ll be surprised and satisfied at how far ahead you can advance by using this resource (not to mention, studying the AppleScript Studio examples provided in Xcode).

If you still can’t figure things out after going through the previous posts, then you can recall the subject later and post it again.

Good luck.

archseed :slight_smile:

Hi,

Wait a minute here. I did not quite understand your post. Did you simply want to add item to the popup menu in the IB?

If so, I assume that you already have a popup menu that already has items in it. To add more item, simply duplicate an existing item in the popup menu then change the item name of the copy to your desired item name. The duplicate command is in the Edit menu of IB (please check; I am on a PC and has no access to Xcode).

Is this what you want? Or do you want to programmatically add new items to your popup menu. If the latter, please do a search of previous posts as I suggested earlier.

Good luck.

archseed :slight_smile:

There are two other ways of duplicating menu items…

  1. In IB, in the object palettes, is the “Cocoa-Menus” pane. Simply drag the one labelled “Item” to your menu.
    Note: In IB, only the “Item” menu item type and the separator item are supported in popup buttons. The rest are for menu’s in the menu bar.

  2. While editing your menu’s items, Option-Click on an item to duplicate it.

j

I always search before I ask, but I guess this time I didn’t have a well defined search, Sorry!
(And thanks, you answered my question)