ich in AppDelegate.m
wie diese kundenspezifische URL-Schemata Handhabung:Benutzerdefinierte URL-Schema ohne Front in App bringt
-(void)applicationWillFinishLaunching:(NSNotification *)aNotification
{
NSAppleEventManager *appleEventManager = [NSAppleEventManager sharedAppleEventManager];
[appleEventManager setEventHandler:self
andSelector:@selector(handleGetURLEvent:withReplyEvent:)
forEventClass:kInternetEventClass andEventID:kAEGetURL];
}
- (void)handleGetURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent
{
NSString * URL = [[event paramDescriptorForKeyword:keyDirectObject] stringValue];
//Do my work with URL
}
Es funktioniert, aber es ist möglich, die App vor mir das jedes Mal nicht bringen rufen benutzerdefiniertes Schema?