• 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: rightMouseDown: (NSEvent) theEvent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rightMouseDown: (NSEvent) theEvent


  • Subject: Re: rightMouseDown: (NSEvent) theEvent
  • From: Ondra Cada <email@hidden>
  • Date: Sat, 4 May 2002 02:09:29 +0200

On Saturday, May 4, 2002, at 02:04 , Matthew Smith wrote:

Mouse events go to the view under the mouse. If that view does not consume
the event, it goes to the next responder and so on. You will not get mouse
events via NSWindow's responder methods unless the view(s) under the mouse
do not consume them. However, in this case, I think Cocoa contextual menu
stuff is consuming your rightMouseDown event.

Interesting... How would I stop it from doing that? If all I need to know is
when a rightMouseDown event occurs, then I can pass the event along to any
interested objects...

Try to catch the event on the NSApplication level: it should help, *all* events should go through there.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: rightMouseDown: (NSEvent) theEvent (From: Matthew Smith <email@hidden>)

  • Prev by Date: Re: rightMouseDown: (NSEvent) theEvent
  • Next by Date: Leaks When Running MultiThreaded (Even w/ AutoRelease Pool)
  • Previous by thread: Re: rightMouseDown: (NSEvent) theEvent
  • Next by thread: NSTextView resizing bug?
  • Index(es):
    • Date
    • Thread