aboutsummaryrefslogtreecommitdiffstats
path: root/CopyMailto/AppDelegate.h
diff options
context:
space:
mode:
authorTeddy Wing2018-09-05 21:30:00 +0200
committerTeddy Wing2018-09-05 22:03:10 +0200
commitb6b106b9456e42e105d65ff8ea2a4425595ab25c (patch)
tree85fef45c7c23bebadca7a116562b81a9dc51adae /CopyMailto/AppDelegate.h
parent446346c056a5abd8bbd7e7aaad94e22ec175b0c7 (diff)
downloadCopy-Mailto-b6b106b9456e42e105d65ff8ea2a4425595ab25c.tar.bz2
Add a "Copy" button that copies the email address to the clipboard
Thanks to these references: - https://stackoverflow.com/questions/5686958/set-string-to-pasteboard-copy-paste-in-cocoa-application/5687005#5687005 - https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/PasteboardGuide106/Articles/pbCopying.html
Diffstat (limited to 'CopyMailto/AppDelegate.h')
-rw-r--r--CopyMailto/AppDelegate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/CopyMailto/AppDelegate.h b/CopyMailto/AppDelegate.h
index 321d100..7ba86b3 100644
--- a/CopyMailto/AppDelegate.h
+++ b/CopyMailto/AppDelegate.h
@@ -15,5 +15,6 @@
- (void)handleURLEvent:(NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent;
+- (IBAction)copyEmailToClipboard:(id)sender;
@end