What if you intercept the event a bit higher, in [NSWindow sendEvent:]?
The right click gets intercepted by the toolbar view because it's got its own
menu; it's likely your users won't discover your menu because they're expecting
that one. I have toolbar items with menus, but they're NSButtons that show the
menu on left-click. Have you considered using an NSButton and setting its image
to NSImageNameActionTemplate ("An action menu template image")? That would be
discoverable and accessible.
(Meant to hit reply-all)
On Aug 26, 2011, at 9:36 AM, Indragie Karunaratne wrote:
> Thats actually what I'm doing right now, its an NSToolbarItem with a custom
> view but like I said, the right mouse events are not passed to it by
> NSToolbarView without that little hack. I could, as you said, circumvent
> NSToolbar completely, but when a view is placed outside of the toolbar, it
> disappears when Lion goes into fullscreen mode. I don't know if this is a bug
> or intended behaviour.
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]