diff options
author | Teddy Wing | 2018-09-05 22:07:45 +0200 |
---|---|---|
committer | Teddy Wing | 2018-09-05 22:07:45 +0200 |
commit | 0ce12e58bbfa7bf3b550fdba1fee4250448f9ba2 (patch) | |
tree | 58404e448a4c72f667f3cdb3b6d9b9eb61321d83 | |
parent | 96a2880db7109be6e48de4eb4275e9eae6fd00f0 (diff) | |
download | Copy-Mailto-0ce12e58bbfa7bf3b550fdba1fee4250448f9ba2.tar.bz2 |
Terminate app when email address is copied
Once the email is copied, the application has exhausted its usefulness
and should just quit as if it were a dialog.
-rw-r--r-- | CopyMailto/AppDelegate.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CopyMailto/AppDelegate.m b/CopyMailto/AppDelegate.m index 5eb04c5..b47ce00 100644 --- a/CopyMailto/AppDelegate.m +++ b/CopyMailto/AppDelegate.m @@ -40,6 +40,8 @@ const NSUInteger MAILTO_INDEX = 7; [pasteboard writeObjects: [NSArray arrayWithObject: [_email_address stringValue]]]; + + [NSApp terminate:self]; } @end |