Double-clicking on a custom file type on OSX

Double clicking on a file on OSX does not put the filename on the command-line arguments, as it does on windows. Modifying the Info.plist to associated a new file type is only part of the answer. You also need to provide a custom implementation for NSApplicationDelegate openFile but how do you do that in Unity?

How do you hook that into a Unity project so you can get that file name?

@inwoods Have you ever found a solution for that? We can associate the file but without modifying the delegate it wouldn’t work.

Thanks!