Re: rightMouseDown: never called in NSView subclass
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