diff options
Diffstat (limited to 'CopyMailto/DefaultURLHandler.m')
-rw-r--r-- | CopyMailto/DefaultURLHandler.m | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/CopyMailto/DefaultURLHandler.m b/CopyMailto/DefaultURLHandler.m deleted file mode 100644 index 424a0ee..0000000 --- a/CopyMailto/DefaultURLHandler.m +++ /dev/null @@ -1,24 +0,0 @@ -// -// DefaultURLHandler.m -// CopyMailto -// -// Created by tw on 9/5/18. -// Copyright © 2018 tw. All rights reserved. -// - -#import "DefaultURLHandler.h" - -@implementation DefaultURLHandler - -+ (OSStatus)setDefaultURLHandler { - CFStringRef scheme = (CFStringRef)@"mailto"; - CFStringRef bundle_identifier = (__bridge CFStringRef)[[NSBundle mainBundle] bundleIdentifier]; - - OSStatus status = LSSetDefaultHandlerForURLScheme(scheme, bundle_identifier); - - CFRelease(scheme); - - return status; -} - -@end |