Re: Disable PDFView context menu

2012-03-26 Thread Keary Suska
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 cl

Re: Disable PDFView context menu

2012-03-26 Thread Nick
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)?.. > > 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 like

Re: Disable PDFView context menu

2012-03-26 Thread Keary Suska
On Mar 26, 2012, at 12:41 PM, Antonio Nunes wrote: > On 26 Mar 2012, at 19:09, Nick wrote: > >> However, I still can't receive -rightMouseDown message. I am returning >> "nil" in the method -(NSMenu*)menuForEvent, which disabled the context >> menu. >> But how can I process right-mouse-button cli

Re: Disable PDFView context menu

2012-03-26 Thread Nick
mouseDown is called for the left mouse button only. otherMouseDown - when the scrollwheel is clicked. The only problem is rightMouseDown which is not being invoked at all.. I was hoping there's some way to make PDFView receive this message.. Otherwise I will need to render the PDF page on a custom

Re: Disable PDFView context menu

2012-03-26 Thread Antonio Nunes
On 26 Mar 2012, at 19:09, Nick wrote: > However, I still can't receive -rightMouseDown message. I am returning > "nil" in the method -(NSMenu*)menuForEvent, which disabled the context > menu. > But how can I process right-mouse-button clicks?.. PDFView doesn't play very nice with clicks. If you a

Re: Disable PDFView context menu

2012-03-26 Thread Nick
However, I still can't receive -rightMouseDown message. I am returning "nil" in the method -(NSMenu*)menuForEvent, which disabled the context menu. But how can I process right-mouse-button clicks?.. 26 марта 2012 г. 21:03 пользователь Nick написал: > Thank you Keary. > That's what I needed > > 26

Re: Disable PDFView context menu

2012-03-26 Thread Nick
Thank you Keary. That's what I needed 26 марта 2012 г. 20:31 пользователь Keary Suska написал: > On Mar 26, 2012, at 11:04 AM, Nick wrote: > >> Hi. >> I am wondering, if it is possible to disable a context (popup) menu >> for a PDFView control? >> I have subclassed it, and overridden mouseDown an

Re: Disable PDFView context menu

2012-03-26 Thread Keary Suska
On Mar 26, 2012, at 11:04 AM, Nick wrote: > Hi. > I am wondering, if it is possible to disable a context (popup) menu > for a PDFView control? > I have subclassed it, and overridden mouseDown and rightMouseDown. > I am receiving mouseDown event. But I do not receive rightMouseDown, I > am getting

Disable PDFView context menu

2012-03-26 Thread Nick
Hi. I am wondering, if it is possible to disable a context (popup) menu for a PDFView control? I have subclassed it, and overridden mouseDown and rightMouseDown. I am receiving mouseDown event. But I do not receive rightMouseDown, I am getting context menu displayed instead... Thank you ___