Re: Disable PDFView context menu
Re: Disable PDFView context menu
- Subject: Re: Disable PDFView context menu
- From: Keary Suska <email@hidden>
- Date: Mon, 26 Mar 2012 16:09:11 -0600
On Mar 26, 2012, at 3:36 PM, Nick wrote:
> Is there a way to disable this of filtering, to make the PDFView
> subclass receive the -rightMouseDown event?.. Or what would be the
> workaround (if it exists)?..
If you are targeting 10.6 or later you can install an event monitor (see the NSEvent class reference). You could also subclass NSWindow and use use that subclass in the enclosing window as it should receive the event first.
There may be event handling routines in Core Foundation that provide the kind of control that PDFView is exerting but that is beyond my know-how.
>> AFAIK you shouldn't get a mouseDown call for a right click, only a left click, but you can verify that with breakpoint. It is likely the event is being filtered out higher in the event handling chain...
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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