I missed something with documents created by my application: they are created with the correct extension, but refuse to show the correct icon. In fact, when doubly clicked, they launch… TextEdit.
I have defined a creator type for my app (EVAX, type=APPL) and defined also a file icon (type .icns), a document type (creator EVAX, type=Eval), and set the extension (.eval).
So what should I add or modify to have my icon document, and make them launch my application?
Are you setting the type and creator in code? I’ve had success with my app opening documents (with the correct icon and extension) by setting the document type, extension, and icon in the document types section that you get to by going to Project → Edit Active Target. Have you tried that? I thought that I read somewhere that Apple was moving away from creator types and toward UTIs – maybe something is overriding your settings.
Could you post your info.plist file? Maybe there’s one little thing missing that you haven’t seen yet. And I agree with rdelmar, you should use UTIs instead of creator codes… Much more future-proof.
Fred
Browser: Safari 6533.18.5
Operating System: Mac OS X (10.6)
Hmmm… That all looks ok to me, I don’t see why this is not working. When I had trouble with the wrong icon showing up (even though the info.plist file was correct), the problem fixed itself when the computer was turned off and then rebooted --have you done this?
Where do you see the Creator and Type when you “Get Info” – Do you mean the “Get Info” menu item you get by control clicking (or right clicking) on a file icon? I don’t see either of those things in my info window – I do see something called “Kind” which shows my document name. Do you see this, and if so, what does it show?
Also, if you right click on one of your files and choose “Open With”, what does it show?
I read the Creator and Type on File Buddy (Non-Apple app). And when I right-click on my files, the menu shows my app as a possible choice… BUT I have tried to enforce an opening with my app in the GetInfo Finder window… does it count? Maybe…
Remember the time when you have a BNDL/FREF resource to set and everything worked? Ok, I’m a bit nostalgic, I confess…