Search code examples
objective-cmacosnstableviewmenuitemnsoutlineview

How to restrict display menu items on right click on nsoutline view for Few rows only?


I have a NSOutlineView and i need to display menu items on right click of row. method ValidateMenuItem gets called on displaying menu.But i want to restrict few rows to display menu items.

How to achieve this please help.


Solution

  • just saw old posts.... simple answer for this would be, we have to programmatically decide from ValidateMenu . to display menu or not we can maintain bool value.