• 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: Adding HUD context pannel to rows within NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding HUD context pannel to rows within NSOutlineView


  • Subject: Re: Adding HUD context pannel to rows within NSOutlineView
  • From: David Spooner <email@hidden>
  • Date: Wed, 28 Nov 2007 06:56:04 -0700


One approach is to override -menuForEvent: in your subclass of NSOutlineView, there creating and populating an NSMenu. You might consider delegating the task of populating the menu to the selected item or to the outline view's delegate...


dave

On 28-Nov-07, at 5:29 AM, Tim Perrett wrote:

Hey All

What I would like to end up with is on my outline view (that already works no problems), when the user right-clicks one of the rows, I would like that one to become the selected row, and a context menu to popup beside, from which I can set some parameters. I have read about the menu outlet, but im not sure if thats the right way to go, and even if it is, what it needs to be connected to?

Can anyone point me in the right direction? Any help at all would be greatly appreciated :)

Cheers

Tim

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Adding HUD context pannel to rows within NSOutlineView (From: Tim Perrett <email@hidden>)

  • Prev by Date: Re: Use of assign vs. copy for accessors in Garbage Collected app
  • Next by Date: Re: Use of assign vs. copy for accessors in Garbage Collected app
  • Previous by thread: Adding HUD context pannel to rows within NSOutlineView
  • Next by thread: Re: Adding HUD context pannel to rows within NSOutlineView
  • Index(es):
    • Date
    • Thread