swift - How to implement different contextual-menus in a NSOutlineView -


i have view-based nsoutlineview , want show different contextual menus if user right-clicks header or 1 of expanded items.

i dropped 2 nsmenu's storyboard file. when connect menu outlet of headercell 1 of menus got "unsupported configuration" warning , menu never shown. (the same warning table view cell)

i using swift.

can guide me right direction?

enter image description here

1.add nsmenu on scene 2.add outlets setting nsoutlineview make relationship between nsoutlineview nsmenu 3.add custom class overriding nsmenudelegate


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -