NSView handles rightMouseDown: differently - it calls calls menuForEvent: Documentation says in 10.7+ it should pass it up the responder chain, so you ought to get it.
I'd put a symbolic break on -[NSView rightMouseDown:] and see if it's being called; that might shed some light on where it's going. On May 16, 2014, at 8:11 AM, Tim Hewett wrote: > I have tried that too, no message for that either. > > Tim. > > > On 16 May 2014, at 14:30, Eric Shepherd <the.she...@gmail.com> wrote: > >> Try implementing rightMouseDown: instead for that. >> >> Eric Shepherd >> >>> On May 15, 2014, at 12:39 PM, Tim Hewett <tghewe...@onetel.com> wrote: >>> >>> I have a NSMenuItem with a custom view (inheriting from NSImageView) which >>> needs to react to mouseDown: events. An NSTrackingArea has been setup for >>> the view’s frame to enable this. >>> >>> When getting the events the modifierFlags are used to change behaviour, but >>> this doesn’t work when control is held down - no mouseDown: event occurs at >>> all (no problem with other modifier keys). >>> >>> If mouseDown: is called with no modifier keys held down and then control is >>> pressed, this can be seen in the modifier flags when the mouseUp: event >>> occurs. >>> >>> The TrackView in the MenuItemView sample code has been tested and gets >>> mouseDown: events including when control is held down, the only difference >>> seems to be that the view in that sample is defined in a XIB while the >>> problem code’s view is created programmatically. >>> >>> Is there a way that this app can get mouseDown: events when control is >>> being held down? >>> _______________________________________________ >>> >>> 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: >>> https://urldefense.proofpoint.com/v1/url?u=https://lists.apple.com/mailman/options/cocoa-dev/the.sheppy%2540gmail.com&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=yJFJhaNnTZDfFSSz1U9TSNMmxGyib3KjZGuKfIhHLxA%3D%0A&m=coyti1S6AoDBJ2Iq%2Fk5SXe5EGAtaBJ%2Bgszt9rNM7m3w%3D%0A&s=b1221be697f631761fc1d184ddac0643151429eb9f0d0ae13640be539a1abfea >>> >>> This email sent to the.she...@gmail.com > > > _______________________________________________ > > 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: > https://urldefense.proofpoint.com/v1/url?u=https://lists.apple.com/mailman/options/cocoa-dev/lrucker%2540vmware.com&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=yJFJhaNnTZDfFSSz1U9TSNMmxGyib3KjZGuKfIhHLxA%3D%0A&m=coyti1S6AoDBJ2Iq%2Fk5SXe5EGAtaBJ%2Bgszt9rNM7m3w%3D%0A&s=33471d3a07dc528a4858e0d13d5e9f329ec1849e4e8473187f9e0e7577cf6e73 > > This email sent to lruc...@vmware.com _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com