• 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: Lee Ann Rucker <email@hidden>
  • Date: Fri, 26 Aug 2011 12:28:39 -0700

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@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

  • Follow-Ups:
    • Re: rightMouseDown: never called in NSView subclass
      • From: Indragie Karunaratne <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>)
 >Re: rightMouseDown: never called in NSView subclass (From: Indragie Karunaratne <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Corbin Dunn <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Indragie Karunaratne <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Raleigh Ledet <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Indragie Karunaratne <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Quincey Morris <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Indragie Karunaratne <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Quincey Morris <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Indragie Karunaratne <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Mark Munz <email@hidden>)
 >Re: rightMouseDown: never called in NSView subclass (From: Indragie Karunaratne <email@hidden>)

  • Prev by Date: Layer Backed WebView: assertion failed/CGGStackRestore crash on Google News page
  • Next by Date: Re: Calling -addObserver:forKeyPath:… more than once
  • Previous by thread: Re: rightMouseDown: never called in NSView subclass
  • Next by thread: Re: rightMouseDown: never called in NSView subclass
  • Index(es):
    • Date
    • Thread