Showing a popover from an NSOutlineView
Showing a popover from an NSOutlineView
- Subject: Showing a popover from an NSOutlineView
- From: Steve Mills <email@hidden>
- Date: Wed, 22 May 2013 16:03:38 -0500
Rather than try to get an NSPopUpMenu to work by displaying a window instead of the menu, I'm going down the path of using an NSPopover instead. It allows multiple events in the window and can dismiss when the user clicks somewhere else. Great. Now I *also* need to display this popover from a cell in an outline view. Previously, the cell that used to display this window was a subclass of NSPopUpButtonCell. The cell needs to *look* like a popup cell with the name on the left and popup triangle on the right. I get the feeling that I should not keep using an NSPopUpButtonCell for this, because it will run into the same issues that I was trying to work around before. So is it possible to use some other NSCell class and embed an NSPopUpButtonCell inside of it just so it can do the drawing, but allow me to handle the mouse tracking so I can show the popover instead? Or is there another way to draw a popup triangle? It doesn't look like an outline view cell can be an NSButtonCell.
Any guidance would be appreciated, as this entire window is overly complex and I'm about to go insane.
--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157
_______________________________________________
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