• 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: Contextual menu for NSTableCellView in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Contextual menu for NSTableCellView in NSOutlineView


  • Subject: Re: Contextual menu for NSTableCellView in NSOutlineView
  • From: Lee Ann Rucker <email@hidden>
  • Date: Wed, 10 Feb 2016 21:32:54 +0000
  • Thread-topic: Contextual menu for NSTableCellView in NSOutlineView

Did you set the menu's delegate? It doesn't know about the outlineView's delegate.

> On Feb 10, 2016, at 9:10 AM, Konidaris Christos <email@hidden> wrote:
>
> I cannot get contextual menus to work inside the cells of my view-based NSOutlineView.
>
> In my cell view I have one standard NSImageView and one NSTextFieldCell. I set the menu for the outline view in IB. When I (right) click on a cell outside the two views the contextual menu appears. When I click on one of the two fields it does not. I can see from the logs that the menu delegate's menuNeedsUpdate: is not called in this case.  I tried setting the same menu as the menu for these views in IB with the same result.  I get the same behavior when I implement  -menuForEvent:(NSEvent *)event for my NSOutlineView subclass instead of setting the menu in IB.
>
> I also tried implementing -menuForEvent:(NSEvent *)event for my NSTableCellView subclass with no better luck. This all in Xcode 7.2.1, deployment target set to 10.9, no ARC.
>
> Does anybody know what I am missing for the contextual menu to work for my cell views?
>
> Thanks in advance,
>
> - Christos Konidaris
>


_______________________________________________

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


  • Follow-Ups:
    • Re: Contextual menu for NSTableCellView in NSOutlineView
      • From: Konidaris Christos <email@hidden>
References: 
 >Contextual menu for NSTableCellView in NSOutlineView (From: Konidaris Christos <email@hidden>)

  • Prev by Date: Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server
  • Next by Date: Re: Contextual menu for NSTableCellView in NSOutlineView
  • Previous by thread: Contextual menu for NSTableCellView in NSOutlineView
  • Next by thread: Re: Contextual menu for NSTableCellView in NSOutlineView
  • Index(es):
    • Date
    • Thread