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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to