diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-10-24 18:42:40 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-10-24 18:43:25 (GMT) |
commit | 22501a3af25840b90898c3b4c075581947646476 (patch) | |
tree | 43a366eb4f00f930fea235481eeff343a3b0c582 /SwifTools/URIHandler/MacOSXURIHandler.mm | |
parent | d4789216fc8894a5ce3ed359851422acecfe6bdb (diff) | |
download | swift-contrib-22501a3af25840b90898c3b4c075581947646476.zip swift-contrib-22501a3af25840b90898c3b4c075581947646476.tar.bz2 |
Don't register ourself as default URI handler.
We need to ask the user first.
Diffstat (limited to 'SwifTools/URIHandler/MacOSXURIHandler.mm')
-rw-r--r-- | SwifTools/URIHandler/MacOSXURIHandler.mm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/SwifTools/URIHandler/MacOSXURIHandler.mm b/SwifTools/URIHandler/MacOSXURIHandler.mm index 3542e2f..0575d47 100644 --- a/SwifTools/URIHandler/MacOSXURIHandler.mm +++ b/SwifTools/URIHandler/MacOSXURIHandler.mm @@ -50,8 +50,10 @@ MacOSXURIHandler::~MacOSXURIHandler() { void MacOSXURIHandler::start() { [[NSAppleEventManager sharedAppleEventManager] setEventHandler:p->eventHandler andSelector:@selector(getUrl:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetURL]; - NSString* bundleID = [[NSBundle mainBundle] bundleIdentifier]; - LSSetDefaultHandlerForURLScheme((CFStringRef)@"xmpp", (CFStringRef)bundleID); + + // Register ourselves as default URI handler + //NSString* bundleID = [[NSBundle mainBundle] bundleIdentifier]; + //LSSetDefaultHandlerForURLScheme((CFStringRef)@"xmpp", (CFStringRef)bundleID); } void MacOSXURIHandler::stop() { |