• 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
Re: Disable PDFView context menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disable PDFView context menu


  • Subject: Re: Disable PDFView context menu
  • From: Nick <email@hidden>
  • Date: Mon, 26 Mar 2012 21:09:43 +0300

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 <email@hidden> написал:
> Thank you Keary.
> That's what I needed
>
> 26 марта 2012 г. 20:31 пользователь Keary Suska
> <email@hidden> написал:
>> 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 context menu displayed instead...
>>
>> I suspect you need to override +defaultMenu or -menuForEvent:, depending on what you need to accomplish.
>>
>> 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


  • Follow-Ups:
    • Re: Disable PDFView context menu
      • From: Antonio Nunes <email@hidden>
References: 
 >Disable PDFView context menu (From: Nick <email@hidden>)
 >Re: Disable PDFView context menu (From: Keary Suska <email@hidden>)
 >Re: Disable PDFView context menu (From: Nick <email@hidden>)

  • Prev by Date: Re: Disable PDFView context menu
  • Next by Date: Re: Disable PDFView context menu
  • Previous by thread: Re: Disable PDFView context menu
  • Next by thread: Re: Disable PDFView context menu
  • Index(es):
    • Date
    • Thread