• 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
mouseDown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: mouseDown
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: NSURLCredential and Keychain
  • Next by Date: Re: mouseDown
  • Previous by thread: NSURLCredential and Keychain
  • Next by thread: Re: mouseDown
  • Index(es):
    • Date
    • Thread