Re: Showing a popover from an NSOutlineView
Re: Showing a popover from an NSOutlineView
- Subject: Re: Showing a popover from an NSOutlineView
- From: Alex Zavatone <email@hidden>
- Date: Wed, 22 May 2013 17:15:31 -0400
I've got a simple case for iOS that I can send you where I issue an UIPopoverController and a PopoverContentViewController from a UIButton in a UINavigationBar.
Sounds like you're trying to do this in the Mac, but if you think it will help, I'll strip the project down to the minimum and send your way. Will work on iOS 5 and up, Xcode 4.2 and up.
As for retheme-ing the border for the popover, haven't tried that yet. If you need some close to accurate triangles, I can get those for you and you can put them in a UIImageView over the button.
Let me know.
On May 22, 2013, at 5:03 PM, Steve Mills wrote:
> 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
_______________________________________________
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