I would like to open a file with my application when the file is double clicked. I have registered the filetype with the application and the application: openFile: method works fine if I drop a file onto the applications icon. In the apple documentation it says, that this method should also work when the user double clicks a file.
What I am seeing is, the app will activate when the file is opened by double click, but Safari will open the file instead (Trying to open a .webloc file). But the method application: openFile: does not get called :(
Here is how i set it up in xcode:

Edit:
I have set the .webloc to open as standart to my application. Also Right clicking "Open With" > "My App" does not work.
Edit 2: If I rename the file extension to .mp3 or any other, my application will open the file as it should by double clicking it! Strange...