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

This commit is contained in:
Charlie Qiu
2017-01-13 00:24:50 +08:00
committed by qinyuhang
parent be7d45317c
commit 67b0fd5735
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