SOLVED: Document Icon won't change
SOLVED: Document Icon won't change
- Subject: SOLVED: Document Icon won't change
- From: Jerry Krinock <email@hidden>
- Date: Sun, 23 Dec 2012 06:57:13 -0800
While fixing this problem, I found quite quite a few people with the same issue in the list archives.
Problem: Want to change the document icon for an app. Success is indicated when the new icon shows in Finder windows, and in the title bar of document windows.
Expected Steps:
• Produce 1024x1024 MyDocument.png.
• Produce from this a MyDocument.iconset folder.
• Add the MyDocument.iconset file to the project's app target.
• Change the string in Info.plist ▸ CFBundleDocumentTypes ▸ 0 ▸ CFBundleTypeIconFile to "MyDocument.icns".
• Clean.
• Build.
• Verify that Xcode produced a MyDocument.icns file in Contents/Resources of the build.
• Verify that the new CFBundleTypeIconFile was in the new Info.plist.
Important, non-obvious step:
• Delete any previous versions of the app.
• Restart.
I don't know where Mac OS X stores these icon refs. I couldn't find anything in the keys of ~/Library/Preferences/com.apple.LaunchServices.plist. I suppose this is a system-wide thing, probably in /Library somewhere.
Merely placing the new app version in /Applications and restarting is insufficient.
Adding a Info.plist ▸ UTExportedTypeDeclarations ▸ 0 ▸ UTTypeIconFile does not help.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden