mouseDown
mouseDown
- Subject: mouseDown
- From: "Alan Smith" <email@hidden>
- Date: Fri, 10 Mar 2006 12:28:35 -0500
I've got a question from a friend. How to show a window when a subclass of
NSView is right clicked. I tried this, just to test:
- (void)mouseDown:(NSEvent*) theEvent
{
if ([theEvent type] == NSRightMouseDown)
{
NSLog(@"it works");
}
}
It doesn't work and when I run it passed the debugger it can't get passed
the if statement; it stops Right on "if ([theEvent type] ==
NSRightMouseDown)." You press continue and it disappears, as if it's about
to go on, but then stays on that line. It's rather annoying, 'cause I can't
see any problems with the code, and it's so simple.
Thanks in advance, Alan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden