Open file in a Mac Unity App possible?

Trying to open a file in a Mac Unity app but keep getting:

'The document could not be opened. cannot open files in the format.

Have set the plist up to accept files with a particular ending, and when selecting these files the app will load up but then get this message. Googling the problem looks like will need to implement ‘readFromData:ofType:error:’ or ‘application:openFile:’ so can return YES when the app is quizzed if to allow the file type. If this is the case is there any way to fiddle with the xcode as you could with an iOS build, or is this just not possible with Mac builds not using xcode?

Thanks for any help in advance,

Chris

Which file are you trying to open? There is no XCode project produced for Mac builds.

–Eric

A data file I have given the extension “.may” to. Yes, seeing as there is no xcode, presume there is no cocoa source in the files and no chance of intercepting a NSApplicationDelegate and related – application:openFile: to override. Is there an alternative or does it just not exist for Mac builds?

As doesnt seem possible with Unity yet, resorted to showing a native popup, selectable from within the app, to select local files to import into the system.