I am developing a OSX app with Force touch support.
As default, if you set an NSTextField's behaviour editable, user can click two times or use force touch to start editing.
I want to allow user start editing only with Force touch. How can I handle this?
Subclass NSTextField and override
pressureChange(with:). Then, checkevent.stagefor the level of the pressure (orevent.pressurefor the accurate value). If event.stage is2, it is the force touch.