davidf
October 13, 2014, 10:55am
1
Hello all
I'm porting an applicaiton on MACOSX and we're saving "session files", i know how to associate a file extension with an icon on Windows (via NSIS installer + using registerFileAssociation from JUCE) but i can't find how to do the same on MACOSX
Can you help ?
Thanks in advance
It's stored in your applications .plist
You can edit from from target settings >> info >> document types
It looks like this:
I've never figured out how to do it programmatically.
davidf
October 13, 2014, 1:46pm
3
Thanks a lot.
It seems to create a section in my .plist called CFBundledDocumentTypes
jules
October 13, 2014, 1:59pm
4
The introjucer has a setting for this, where you give it the list of document extensions, and it'll sort out the plist entry automatically
davidf
October 13, 2014, 2:05pm
5
Thanks Jules
Iit's only available on mac target - this is why i haven't seen it before
davidf
October 13, 2014, 3:03pm
6
OK i've checked and Yes the files i create with the tool do open with the tool (the extension is recognised well).
But the problem is that these files still don"t show with the proper icon.
davidf
October 13, 2014, 3:19pm
7
Sorry. The icons have refreshed after OS restart.