From da31291a965ea898a59a0859c7e455144eaea195 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 5 Sep 2018 19:00:55 +0200 Subject: Add `DefaultURLHandler`; Get current handler for `mailto` URLs Add a class to get the current bundle handler for `mailto` URLs. It will be extended to set CopyMailto as the default handler after saving the original. --- CopyMailto/main.m | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CopyMailto/main.m') diff --git a/CopyMailto/main.m b/CopyMailto/main.m index dd3e4a5..8dfe2c1 100644 --- a/CopyMailto/main.m +++ b/CopyMailto/main.m @@ -8,6 +8,9 @@ #import +#import "DefaultURLHandler.h" + int main(int argc, const char * argv[]) { + [DefaultURLHandler saveDefaultURLHandler]; return NSApplicationMain(argc, argv); } -- cgit v1.2.3