• 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: Christopher Holland <email@hidden>
  • Date: Fri, 3 May 2002 09:18:11 -0500

If you are trying to use a context menu from an NSView object then you need to use:

- (NSMenu *) menuForEvent:(NSEvent *)theEvent

You can find the method description in the NSView docs.

I hope this helps.

Christopher

On Thursday, May 2, 2002, at 07:02 PM, Matthew Smith wrote:

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.

References: 
 >rightMouseDown: (NSEvent) theEvent (From: Matthew Smith <email@hidden>)

  • Prev by Date: Re: NSLog to a file?
  • Next by Date: Re: Cocoa and Applescript
  • Previous by thread: rightMouseDown: (NSEvent) theEvent
  • Next by thread: Re: rightMouseDown: (NSEvent) theEvent
  • Index(es):
    • Date
    • Thread