How to make NSTextFieldCell Accept Copy / Paste Keyboard (cmd + c / cmd + v)

I am writing an editable NSTextFieldCell in NSTableColumn and everything is going well.

But I found that my cell can take a right click, copy / paste until it responds to copy / paste the keyboard (cmd + c / cmd + v).

Can someone please tell me how to make my keyboard support copy / paste the keyboard? Should I set up my own cell and implement some method?

Thanks!

+6
source share
1 answer

edit menu items for copy / cut / paste, etc. - This is what displays shortcuts for actions.

see a similar question here: Cocoa Hotkeys in a dialog without an edit menu

+9
source

Source: https://habr.com/ru/post/951364/


All Articles