NSTableHeaderView menu

We have NSTableHeaderViews with associated context menus (using menu property of nstableheaderview) and need to determine from which table column the menu was invoked.

This does not seem possible without subclassing either the header view or header view cell classes.


Am I wrong? Suggestions?

You have probably seen this old post which seems to confirm you have to subclass :


http : / / stackoverflow.com/questions/3849728/show-contextual-menu-on-ctrl-click-right-click-on-header-of-nstableview


Did you try to use the menu title as an identifier that you can recognize ?

NSTableHeaderView menu
 
 
Q