• 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
Pop-up menus not working in NSOutlineView with image subview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pop-up menus not working in NSOutlineView with image subview


  • Subject: Pop-up menus not working in NSOutlineView with image subview
  • From: Tim Hewett <email@hidden>
  • Date: Thu, 03 Jul 2014 03:40:12 +0100

I have an NSOutlineView with a NSImageView subview providing a background image. Now a pop-up menu has been added to the outline view it seems the menu only appears with a secondary click on a trackpad. Ctrl-click and the right mouse button do not pop up the menu.

Removing the background image causes the menu to work as wanted.

It seems the image is blocking the events for the outline view menu (except for the trackpad secondary clicks…!?), is there a way to get the mouse events through to the outline view? The addSubview:positioned:relativeTo: method has been tried using NSWindowBelow has been tried for the image view as an attempt to add it “behind” the outline view but made no difference.
_______________________________________________

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: Pop-up menus not working in NSOutlineView with image subview
      • From: Andy Lee <email@hidden>
    • Re: Pop-up menus not working in NSOutlineView with image subview
      • From: Jonathan Mitchell <email@hidden>
  • Prev by Date: Re: NSFileHandle -availableData breaks stdin stream at 4K chunks?
  • Next by Date: Re: NSFileHandle -availableData breaks stdin stream at 4K chunks?
  • Previous by thread: Re: NSFileHandle -availableData breaks stdin stream at 4K chunks?
  • Next by thread: Re: Pop-up menus not working in NSOutlineView with image subview
  • Index(es):
    • Date
    • Thread