Re: How to build a popup menu and show this menu?
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