Reputation: 4417
in macOS, I need to handle copy paste in one NSViewController
down my responder chain. I have found references to -copy:sender
& -paste:sender
IBAction methods in Obj-C but can't find anything in swift 2.3 I could use. Any ideas?
Upvotes: 0
Views: 621
Reputation: 6335
You can stick these in your view controller and unless something else in the responder chain picks them up first your view controller should get the events.
@IBAction func copy(_ sender: Any) {
}
@IBAction func paste(_ sender: Any) {
}
Upvotes: 4