Problem with emulated right click and contextual menu
Problem with emulated right click and contextual menu
- Subject: Problem with emulated right click and contextual menu
- From: Pierre-Henri Jondot <email@hidden>
- Date: Sun, 15 Mar 2009 12:31:01 +0100
Hi,
A user of a framework of mine (a simple graphing framework named
PHGraph, to be found at http://www.mpkju.fr/~graphview ) reported a
problem with some mouse actions :
The view is a custom view, configured so that :
- a left click zoom in, alt+right click zoom out
- right click (and the equivalent ctrl+left click) shows a contextual
menu (export graph to pasteboard as pdf, tiff...)
problem is : ctrl+alt+left click shows the contextual menu too, and
not the proper zoom out action
The contextual menu is obtained by overriding +defaultMenu class
method (PHGraphView is a NSView subclass)
It seems that the view instance does not receive mouseDown: nor
rightMouseDown: event for a ctrl+alt+left click, but instead the
contextual menu appears.
If I comment out the +defaultMenu class, a rightMouseDown event is
sent for a ctrl+alt+left click... as it should...
Any idea what I am doing wrong ?
Regards,
Pierre-Henri Jondot
_______________________________________________
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