• 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: Detecting ctrl-click (context menu) in NSBrowser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Detecting ctrl-click (context menu) in NSBrowser
      • From: Mikael Arctaedius <email@hidden>
References: 
 >Detecting ctrl-click (context menu) in NSBrowser (From: Mikael Arctaedius <email@hidden>)

  • Prev by Date: Re: difference between frameworks and plugins
  • Next by Date: NSComboBoxCell on a NSTableColumn getting and setting its value from/to the model through bindings
  • Previous by thread: Detecting ctrl-click (context menu) in NSBrowser
  • Next by thread: Re: Detecting ctrl-click (context menu) in NSBrowser
  • Index(es):
    • Date
    • Thread