I have something like:
LSSetDefaultHandlerForURLScheme((__bridge CFStringRef)(urlschemeref), newHandler);
Up to OS X 10.9 it worked nicely and set the default URL handler to whatever I had in newHandler.
In Yosemite, Apple introduced a "security feature": a dialog box is displayed to user to confirm the change. Something like this:
I know it's a bit far fetched, but maybe there is a way to suppress or "accept" that programmatically?
Or is there a better way to set URLScheme handlers in a headless context?