Re: Add duplicate menu items
Re: Add duplicate menu items
- Subject: Re: Add duplicate menu items
- From: Nicko van Someren <email@hidden>
- Date: Fri, 24 Sep 2004 00:08:56 +0100
On 23 Sep 2004, at 22:48, John Mistler wrote:
I would like to populate a popup button with a list such as:
{"thisItem", "thisItem", "thatItem", "thatItem", "thatItem"}
I'm sure you have a good reason for doing this but I'm also sure it
will be confusing to your users.
I am looking for a method that does not remove duplicate items. For
instance, "addItemsWithTitles" only adds "thisItem" and "thatItem" to
the
menu, leaving only two menu items. I want five.
Does anyone know how to accomplish this?
How about calling -menu on the NSPopUpButton and then adding items
directly to the underlying NSMenu using either -addItem: or
-addItemWithTitle:action:keyEquivalent:
Nicko
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden