I'm on Lion, and I did find this bit in the AppKit Release Notes: NSView now passes unhandled -rightMouseDown: events up the responder chain
Prior to 10.7, NSView did not pass unhandled -rightMouseDown: events up the responder chain. On 10.7, NSView passes -rightMouseDown: up the responder chain, if AppKit doesn’t find an associated context menu to display for the view. To avoid binary compatibility issues, this new behavior is enabled only for applications linked on 10.7 or later. I'm not sure how this would cause my issue though, because I'm overriding -rightMouseDown:. On 2011-08-25, at 12:56 PM, Kyle Sluder wrote: > On Thu, Aug 25, 2011 at 11:45 AM, Indragie Karunaratne > <cocoa...@indragie.com> 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. This is the >> first time I've come across this issue as it has always worked fine for me >> before. All of the other mouse event methods (mouseDown:, mouseUp:, >> mouseDragged: etc.) work just fine. The view itself is a CALayer-hosting >> view embedded inside an NSScrollView (unless I'm screwing up something >> really obvious, I'm pretty sure the issue is related to this). > > There's something in the release notes about this… what OS are you on? > > --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com