• 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: "Erik M. Buck" <email@hidden>
  • Date: Fri, 3 May 2002 10:18:09 -0500

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.

----- Original Message -----
From: "Matthew Smith" <email@hidden>
To: <email@hidden>
Sent: Thursday, May 02, 2002 7:02 PM
Subject: rightMouseDown: (NSEvent) theEvent


> Hello,
>
> I've subclassed an NSWindow and overridden a few of the NSResponder
methods
> so as to be alerted when certain events occur.
>
> One of the methods I am overriding is
> - (void) rightMouseDown: (NSEvent *) theEvent
>
>
> Strangely this is never called in my app (though rightMouseUp, mouseDown
and
> mouseUp are).
>
> Is this a known issue? Or is my computer just wakko?
>
> Thanks,
>
> Matt Smith
> _______________________________________________
> 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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: rightMouseDown: (NSEvent) theEvent
      • From: Matthew Smith <email@hidden>
References: 
 >rightMouseDown: (NSEvent) theEvent (From: Matthew Smith <email@hidden>)

  • Prev by Date: Trying to read selection states
  • Next by Date: Re: Cocoa proto-app will not run on another computer
  • Previous by thread: Re: rightMouseDown: (NSEvent) theEvent
  • Next by thread: Re: rightMouseDown: (NSEvent) theEvent
  • Index(es):
    • Date
    • Thread