Re: Contextual menu for NSTableCellView in NSOutlineView
Re: Contextual menu for NSTableCellView in NSOutlineView
- Subject: Re: Contextual menu for NSTableCellView in NSOutlineView
- From: Matt Reagan <email@hidden>
- Date: Wed, 10 Feb 2016 16:02:19 -0800
> 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 a little about this when I first hit that same issue: http://sound-of-silence.com/?article=20150923 <http://sound-of-silence.com/?article=20150923>
-Matt
> On Feb 10, 2016, at 2:42 PM, Ken Thomases <email@hidden> wrote:
>
> On Feb 10, 2016, at 4:26 PM, Konidaris Christos <email@hidden> 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 -rightMouseDown: ought to go up the responder chain. Do you implement that on any of your view classes? Also, does a Control-click behave differently than a right-click?
>
> Regards,
> Ken
>
>
> _______________________________________________
>
> 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
_______________________________________________
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