• 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: never called in NSView subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rightMouseDown: never called in NSView subclass


  • Subject: Re: rightMouseDown: never called in NSView subclass
  • From: Indragie Karunaratne <email@hidden>
  • Date: Thu, 25 Aug 2011 14:19:33 -0600

Triple checked, I even copy/pasted the method directly from the docs to make sure:

- (void)rightMouseDown:(NSEvent *)theEvent
{
    NSLog(@"right mouse");
    [super rightMouseDown:theEvent];
}

Could it be something to do with the fact that it's a layer hosting view? I don't see how that would make a difference in the responder chain but that's all I can think of.

On 2011-08-25, at 1:58 PM, Ken Thomases wrote:

> On Thu, Aug 25, 2011 at 11:45 AM, Indragie Karunaratne <email@hidden> wrote:
>
>> I have an NSView subclass that I'm trying to capture right clicks in. I override the rightMouseDown: method but it is never called.
>
> Any chance you simply have a typo or misspelling in your method signature?
>
> -Ken
>

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >rightMouseDown: never called in NSView subclass (From: Indragie Karunaratne <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Kyle Sluder <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Indragie Karunaratne <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: rightMouseDown: never called in NSView subclass
  • Next by Date: Sharing a persistent store between iOS and Mac
  • Previous by thread: Re: rightMouseDown: never called in NSView subclass
  • Next by thread: Re: rightMouseDown: never called in NSView subclass
  • Index(es):
    • Date
    • Thread