Re: NSPopUpButton With Submenus
Re: NSPopUpButton With Submenus
- Subject: Re: NSPopUpButton With Submenus
- From: Nicko van Someren <email@hidden>
- Date: Wed, 16 Nov 2005 12:16:38 +0000
On 16 Nov 2005, at 09:28, Andrew Farmer wrote:
On 15 Nov 05, at 08:20, Sean McBride wrote:
On 2005-11-15 11:25, Uli Kusterer said:
Has anyone been able to add a menu with submenus properly to an
NSPopUpButton?
You know, I'm selling these fine NSOutlineViews... ;-)
And with every order, you get a free copy of Apple's Human
Interface Guidelines ... :-p
Specifically,
<http://developer.apple.com/documentation/UserExperience/Conceptual/
OSXHIGuidelines/XHIGControls/chapter_18_section_3.html#//apple_ref/
doc/
uid/TP30000359-TPXREF132>
But, of course, Apple breaks this one in the Print dialog (which
they use
as an example!) - take a look at the Printer popup menu. Go figure.
This example also seems to hold the key to the answer to the original
question. When you select from the sub-menus the item that you
select gets added to the main pop-up menu and it is the newly added
entry which gets selected. So, if you really feel you have to have
sub-menus it seems that what you need to do is set the actions on the
items of the submenu to add a new item to the main menu and select
the new item.
Cheers,
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