Cocoa – Custom URL Scheme

I need my app to listen to a custom url scheme because of oAuth authentication. To enable custom urls you need to do the following:

Add the following parts to your app’s info.plist:

Note, that it is convetion that the URL identifier is denoted in Java namespace style ( The value of URL Schemes will be used as identifier for your url later (like dropnet://).

In the class(es) where you want to be notified when your app was called by url, add the following code: