• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSPopUpButton With Submenus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSPopUpButton With Submenus (From: Juan Alvarez <email@hidden>)
 >Re: NSPopUpButton With Submenus (From: Uli Kusterer <email@hidden>)
 >Re: NSPopUpButton With Submenus (From: "Sean McBride" <email@hidden>)
 >Re: NSPopUpButton With Submenus (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Batch faulting
  • Next by Date: Re: Smart Lists (smart folders, smart groups,...) with Core Data
  • Previous by thread: Re: NSPopUpButton With Submenus
  • Next by thread: [Meet] Cocoaheads New York City - Tuesday Nov 15th
  • Index(es):
    • Date
    • Thread