1

I have an NSPopover that contains an NSTabView which encloses all the popover's content view area. In this setup, I could not drag out the popover even though I've implemented detachableWindowForPopover: correctly in the delegate. I know I have implemented the delegate correctly because if the the tab view's size is reduced slightly (to uncover it's parent view), the popover can be dragged out into its own window.

Question is: How to make the popover can be detached by grabbing any blank area in the tab view?

Here's my object composition hierarchy

NSPopover 
    -> content view controller (NSViewController)
        -> the content view controller's view (NSView)
            -> NSTabView
               -> (some other views and their controllers for each tab)
4

0 回答 0