Re: Contextual menu for NSTableCellView in NSOutlineView

2016-02-10 Thread Matt Reagan
> Also, does a Control-click behave differently than a right-click? Control-clicks will behave differently than a right-click in NSView (though I'm not sure if that's Konidaris' problem). A control click on a child NSView won't show the parent's -menuForEvent as a right mouse down does. I wrote

Re: Contextual menu for NSTableCellView in NSOutlineView

2016-02-10 Thread Ken Thomases
On Feb 10, 2016, at 4:26 PM, Konidaris Christos wrote: > > Thanks for the insight Ken. I’ll try setting the menu manually tomorrow (it’s > half past midnight here) and let you know. But shouldn’t the > -menuForEvent:(NSEvent *)event for my NSTableCellView subclass work instead ? Well, the -rig

Re: Contextual menu for NSTableCellView in NSOutlineView

2016-02-10 Thread Lee Ann Rucker
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 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

Re: Contextual menu for NSTableCellView in NSOutlineView

2016-02-10 Thread Konidaris Christos
Thanks for the insight Ken. I’ll try setting the menu manually tomorrow (it’s half past midnight here) and let you know. But shouldn’t the -menuForEvent:(NSEvent *)event for my NSTableCellView subclass work instead ? - Christos > On 11 Feb 2016, at 00:18, Ken Thomases wrote: > > Any connecti

Re: Contextual menu for NSTableCellView in NSOutlineView

2016-02-10 Thread Ken Thomases
Any connection you make from a table cell view to something outside of the table column is suspect. It probably doesn't work. The views "inside" of a table column are actually in a sub-NIB. There's a NIB archived to a data blob that's embedded in the NIB holding the outline view. That NIB is

Re: Contextual menu for NSTableCellView in NSOutlineView

2016-02-10 Thread Konidaris Christos
Yes I did set it, to the outlineView’s delegate object. > On 10 Feb 2016, at 23:32, Lee Ann Rucker wrote: > > 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 wrote: >> >> I cannot get contextual menus

Contextual menu for NSTableCellView in NSOutlineView

2016-02-10 Thread Konidaris Christos
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 cl