Since updating to Yosemite my application doesn’t give it’s documents a document icon anymore.
I’ve got a file type and set the role for the file type in the File Types dialog for the OS X build setting. Haven’t mucked around anything with UTIs before.
Here is the entry from the info.plist:
CFBundleTypeName
Database
CFBundleTypeExtensions
vdb
CFBundleTypeOSTypes
MaxD
CFBundleTypeRole
Editor
CFBundleTypeIconFile
DB.icns
Does anyone have an idea what has changed and what I need to change to get the icons back?
Watching this like a hawk… Ive found the same and cant work out the solution myself.
Now Im defaulting to adding a custom icon ( a document preview) to every file using MBS.
[quote=137067:@Beatrix Willius]Since updating to Yosemite my application doesn’t give it’s documents a document icon anymore.
I’ve got a file type and set the role for the file type in the File Types dialog for the OS X build setting. Haven’t mucked around anything with UTIs before.
Here is the entry from the info.plist:
CFBundleTypeName
Database
CFBundleTypeExtensions
vdb
CFBundleTypeOSTypes
MaxD
CFBundleTypeRole
Editor
CFBundleTypeIconFile
DB.icns
Does anyone have an idea what has changed and what I need to change to get the icons back?[/quote]
I do not know if this is related, but yesterday all Internet shortcuts I have on my desktop lost their Safari icon. They appeared as blank documents, although in the info box they showed the correct icon. Relaunching the finder did not fix it, it took a system restart.
Did a test with a brand new Yosemite install on VMWare. There the document icons show up nicely. So it’s either a problem of updating to Yosemite or the typical developer problem of having too many versions of an application installed. Haven’t heard anything from my customers so I guess it’s the latter.
Onyx for Yosemite isn’t out yet. I’ll try to reset the what’s-it-called manually to see if I can get the document icon for myself.
Reset the PRAM will not do much for that.
On the other hand, I discovered a bug in Safari, but too late for the Yosemite released version. It s related to one web site (I only found oe) and copy / paste text from the safari tab to TextEdit (Apples TextEdit). I do not had time to check if the bug appears also in my projects (code appears at paste time, but I get the text styles and the images). I do not have tested far after I found that (are the styles corrects TextEdit vs Safari).
No, not PRAM. The last time I found this necessary to do was the 90s or so. I meant the Launch Services. The internets tells me that the following Terminal command should do it:
sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
The result is odd with the file on the desktop:
- The desktop view shows a blank icon.
- The listview shows one icon.
- The detail shows the correct icon.
[quote=137369:@Beatrix Willius]The result is odd with the file on the desktop:
- The desktop view shows a blank icon.
- The listview shows one icon.
- The detail shows the correct icon.[/quote]
It is exactly what I encountered. Amazingly enough, this manifested in the first beta, then I did not see it until a couple days ago. And it is random, as well, so it is difficult to figure how to reproduce it.
@Michel: sugar! Do you muck around with UTIs or do you have a straight FileType like I do?
The issue presented lately with Safari documents.
I do not know how it is done there.
I think this maybe several fold:
Are you using UTIs?
What entities do you have in your icons?
For the recent applications that I’ve tested on Yosemite, icons are showing up. However the apps have UTIs and the document icons were created with my own Document Icon Maker (with all entities included) and the document icon file was added in (not Xojo made).
Not using UTIs so far because I never got them into my brain. What do you mean with entities?
I’ve got document icons assigned and set the roles in the File Types dialog.
It’s why I added UTI support in App Wrapper, makes it much easier to add and maintain them.
Which entities/representations are in the ICNS file, it maybe that Yosemite is trying to use sizes that are not present in your ICNS files.
AppWrapper is much more complicated than it’s Mini cousin. I’ll have a look.
Hmmm… There seems to be a problem with the Retina versions of the icons because there are only the final images but no images and masks. Is Yosemite mixing between Retina and non-Retina? Only speculation…
I’ve encountered a same problem.Finally I solved it by changing the “icon file” setting item in the info.plist.
Well, is this bug still existing on El Capitan? Because this morning all at once the custom icons of documents created by one of my Xojo-apps went all generic (white). The icons were on the desktop and I was working to something else. Puff!
Putting them in a folder, they show all right in icon-view, but become generic in list-view.
Carlo:
I get that too, but on Yosemite. Since I installed (after trashed Yosemite) El Capitan, I got other troubles, but this one disappears.
Did you try to tell to OS X that your file(s) are owned by your application ?
This seems like a good idea !
@WanFei Chen
Could you explain how to proceed?