Re: Set Icon For Document-Based Files
Re: Set Icon For Document-Based Files
- Subject: Re: Set Icon For Document-Based Files
- From: PJBorges <email@hidden>
- Date: Thu, 4 Nov 2010 13:47:37 -0700 (PDT)
[SOLVED] I finally got it to work. Sherm gave me a last hint that the
extension should be changed.
A standard document-based application enables you to save in 3
formats: binary, SQLite, XML. E.g., if you save in binary format the
extension is automatically set to .binary. This gives a plain white
icon. To change the icon you not only need to do what is mentioned in
the above posts but also change the extension to whatever name you
like. Like .mysupercoolapp Then your custom icon will appear in your
data file of your core data application.
--Philip
On 4 Nov., 19:35, Sherm Pendley <email@hidden> wrote:
> On Thu, Nov 4, 2010 at 2:32 PM, Sherm Pendley <email@hidden> wrote:
> > On Thu, Nov 4, 2010 at 1:39 PM, PJBorges <email@hidden> wrote:
>
> >> Does it matter where you put the key CFBundleTypeIconFile in the
> >> info.plist file?
>
> > To some extent, yes - the overall structure of the .plist must be
> > right. That is, the CFBundleDocumentTypes key must have an array of
> > dictionaries, and the CFBundleTypeIconFile must be a key in one of
> > those. But it doesn't matter in what order the key/value pairs are
> > listed within each dictionary.
>
> A simple check would be to "get info" on your target. If Xcode can
> parse your .plist and show your file type info, the .plist is probably
> structured correctly.
>
> sherm--
>
> --
> Cocoa programming in Perl:http://camelbones.sourceforge.net
> _______________________________________________
>
> 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
>
>
> This email sent to email@hidden
_______________________________________________
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