I would like to open a file with my application when the file is double clicked. I registered filetype with the application and the method application: openFile:works fine if I delete the file on the application icon. Apple's documentation says that this method should also work when the user double-clicks the file.
What I see, the application is activated when the file is opened by double-clicking, but Safari will open the file instead (attempt to open the .webloc file). But the method is application: openFile:not called: (
This is how I installed it in xcode:

Edit:
I installed .webloc to open as standard for my application. Also the right click βOpen Withβ> βMy Applicationβ does not work.
Edit 2:
If I rename the file extension to .mp3 or any other, my application will open the file as needed by double-clicking it! Strange ...
source
share