objective c - Making App default handler on OSX 10.10 with sandbox enabled -


I could not find anything online about this, but if the sandbox is enabled, LSSetDefaultHandlerForURLScheme -54 will return. I'm not sure how the entitlement should be turned on to work for it, as it happens without the sandbox.

To view it in effect, prepare a new project with:

- (zero) Application especially launching: (NSNetification *) Notification {// Default Handler CF Strings Reef Bundle ID = (CF Stringerf) CFBringing Line ([[NSBindel Main Bundle] Bundle Identifier); OSStatus result = LSSetDefaultHandlerForURLScheme (CFRT ("max"), bundle ID); If (result! = 0) {emphasis (0); }}

This will work with the next turn on the sandbox with result -54, it will fail.

OSX 10.10 According to the developer forums created on Yosemite, you can not do it anymore. Sandbox - The behavior you see is expected. This is really moving, because there is no alternative API to implement this functionality, there is a lack of exiting the sandbox.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -