I have an NSPanel with about 4 different NSTextField's on it. I'm looking at getting the usual cut, copy, paste, selectAll working for some of the fields.
The best solution I've found appears to be here: http://web.archive.org/web/20100126000339/http://www.cocoarocket.com/articles/copypaste.html
The AXCVHandler becomes a subclass of NSTextField. On my NSPanel in interface builder if I change a single NSTextField's class to be AXCVHandler, as shown in the link above, then the expected behavior to me would be that only that single text field would allow for cut, copy, and paste. The 3 remaining fields would not since they are still assigned the NSTextField class.
What I'm seeing though is the opposite of my expected behavior. I set a single NSTextField to the AXCVHandler and all of a sudden every single NSTextField on my NSPanel is working with cut, copy, paste ?!
Why is this? The 3 remaining text fields are assigned the NSTextField class yet they are calling performKeyEquivalent in my subclass ?!
What am I missing? Is this a mis-understanding of how firstResponder works or something else?