title: How to prevent right-click textfield renaming in NSOutlineView
body: <p>I am having a NSOutlineView in which the textfield is editable by either pressing return or using the right click. I am also overriding the <code>menu(for event: NSEvent) -&gt; NSMenu?</code> to menu based on which row is clicked</p>
  <p>When I right click on the textfield, it opens the correct menu as expected but it also makes the textfield to go into edit mode. Is there a way to handle this behaviour?</p>
  <p><a href="https://i.stack.imgur.com/OPcPV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OPcPV.png" alt="Wrong" /></a></p>
  <p>However, when I click outside the textfield then it works without setting the textfield in edit mode:</p>
  <p><a href="https://i.stack.imgur.com/iDlku.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iDlku.png" alt="Right" /></a></p>