Question

For some reason, an NSTextField isn't allowing me to paste anything into it using Command+V, though I can paste into it if I right-click and click 'Paste'. Why is this happening and how do I fix it?

Was it helpful?

Solution

I fixed it by linking the "Paste" button in my NSMenu Main Menu to the First Responder's paste: command.

OTHER TIPS

Did you:

  • Assign a key equivalent to any of your controls (NSButtons, NSMenuItems, ...) that are responding before the Main Menu

-- or --

  • Delete the whole Menu
  • the Edit NSMenuItem
  • the Paste NSMenuItem The "Paste" Shortcut is a key equivalent of the "Paste" NSMenuItem

What happens when you select "Edit > Paste" from your application's main menu?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top