• 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
Problem with emulated right click and contextual menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Fast dictionary with integer keys?
  • Next by Date: Re: NSTimer: Debug vs. Release build
  • Previous by thread: Re: Fast dictionary with integer keys?
  • Next by thread: KVO notification not properly propagated isuse
  • Index(es):
    • Date
    • Thread