NSTextView: how to disable single clicks but still allow selection for copy-and-paste?

Viewed 696

I have NSTextView-based component and I would like to disable single clicks on it, so that its insertion point is not affected by these single clicks, but still to be able to select pieces of text for copy-and-paste work:

  1. single clicks do nothing
  2. copy-and-paste is possible and does not affect insertion point

What I want is exactly what we have in default Terminal app: there is insertion point and it is not possible to change it via mouse click, but still selection of text for copy-and-paste is possible.

I have tried looking at - (void)mouseDown:(NSEvent *)theEvent method but didn't find anything helpful.

1 Answers
Related