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 01:21:19 -0700 (PDT)
I have done that, and yet my application registers no changes. It
still saves the data with the plain white icon.
I nocticed that the UTI table is empty. My data can be saved either in
binary, SQL, or XML format. Does it matter if this field is empty? I
noticed that in TextEdit source code that the rtf format is called
public.rtf in the UTI table. If it is necessary do you know the
correct UTI identity?
--Philip
On 3 Nov., 18:11, Reinhard Segeler <email@hidden> wrote:
> You have to register it by adding the document (type and icon name)
> for the document in the target's "Properties" pane and it must be part
> of your project, as well.
>
> -- Reinhard
>
> Am 03.11.2010 um 15:17 schrieb PJBorges:
>
>
>
>
>
> > Hi,
>
> > I've made a core data document-based application that works fine. When
> > you save the data to a file cocoa adds the standard plain white icon
> > representing the data file.
>
> > How do I change that standard icon into a custom one?
>
> > I've tried to add this to the Info.plist file, according to apple's
> > documentation:
>
> > <key>CFBundleTypeIconFile</key>
> > <string>myCustomIcon</string>
>
> > But the icon of the file remains the same standard plain icon when I
> > save the data.
>
> > What am I doing wrong?
>
> > --Philip
> > _______________________________________________
>
> > 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
>
> _______________________________________________
>
> 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