• 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: How to build a popup menu and show this menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to build a popup menu and show this menu?


  • Subject: Re: How to build a popup menu and show this menu?
  • From: Scott Anguish <email@hidden>
  • Date: Thu, 23 Feb 2006 02:17:48 -0500


On Feb 23, 2006, at 2:14 AM, j o a r wrote:


On 23 feb 2006, at 08.10, Scott Anguish wrote:

But.. if you do this with a contextual menu (which is what most apps do it with) you'd want to create a menu in IB as joar suggested, and then set it as a context sensitive menu by overriding the NSView methods -menuForEvent: or +defaultmenu.

Is it not enough to just assign the menu using "-setMenu:" (or do it in IB), as that menu is documented to be the default menu if you don't override "-menuForEvent:" (or "+defaultMenu")?



It'd depend on if the context menu needed to be changed dependent on the actual state of the view (i.e. what is currently selected, where they've clicked...)


I assumed (Danger Will Robinson) that this was a more fluid situation than that. Not for any particular reason though.
_______________________________________________
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: 
 >How to build a popup menu and show this menu? (From: "wlq" <email@hidden>)
 >Re: How to build a popup menu and show this menu? (From: j o a r <email@hidden>)
 >Re: How to build a popup menu and show this menu? (From: "wlq" <email@hidden>)
 >Re: How to build a popup menu and show this menu? (From: Scott Anguish <email@hidden>)
 >Re: How to build a popup menu and show this menu? (From: j o a r <email@hidden>)

  • Prev by Date: Re: How to build a popup menu and show this menu?
  • Next by Date: Re: How to build a popup menu and show this menu?
  • Previous by thread: Re: How to build a popup menu and show this menu?
  • Next by thread: Re: How to build a popup menu and show this menu?
  • Index(es):
    • Date
    • Thread