Re: Detecting ctrl-click (context menu) in NSBrowser
Re: Detecting ctrl-click (context menu) in NSBrowser
- Subject: Re: Detecting ctrl-click (context menu) in NSBrowser
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 3 Feb 2005 12:54:52 -0700
On Feb 3, 2005, at 12:11 PM, Mikael Arctaedius wrote:
I have a NSBrowser which displays a directory structure and when
ctrl-clicking an element, folder or file, I want to support a context
menu for that specific folder/file. But how to I get notified about
ctrl-clicks in a NSBrowser? I haven't found a method for it in the
delegate methods for NSBrowser. Do I need create an own subclass to
NSBrowser and try to "catch" the mouseclicks?
You shouldn't need to do that; just set the browser's menu using the
-setMenu: method or by connecting the browser to the menu in IB. If you
need to dynamically set up the menu, and you're targeting Panther or
later, then you can use the NSMenu delegate methods.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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