Re: rightMouseDown: (NSEvent) theEvent
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.