aboutsummaryrefslogtreecommitdiffstats
path: root/CopyMailto
diff options
context:
space:
mode:
authorTeddy Wing2018-09-05 22:07:45 +0200
committerTeddy Wing2018-09-05 22:07:45 +0200
commit0ce12e58bbfa7bf3b550fdba1fee4250448f9ba2 (patch)
tree58404e448a4c72f667f3cdb3b6d9b9eb61321d83 /CopyMailto
parent96a2880db7109be6e48de4eb4275e9eae6fd00f0 (diff)
downloadCopy-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.
Diffstat (limited to 'CopyMailto')
-rw-r--r--CopyMailto/AppDelegate.m2
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