Add a 'Copy' context menu to the QRCode window.

This commit is contained in:
Charlie Qiu
2017-01-12 11:58:57 +08:00
parent 1388c065c7
commit 62648d02f1
3 changed files with 26 additions and 3 deletions
@@ -71,4 +71,11 @@
return scaledImage;
}
- (IBAction) copyQRCode: (id) sender{
NSPasteboard *pasteboard = [NSPasteboard generalPasteboard];
[pasteboard clearContents];
NSArray *copiedObjects = [NSArray arrayWithObject: self.imageView.image];
[pasteboard writeObjects:copiedObjects];
}
@end