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:12:56 -0700 (PDT)
Thanks for the reference. I does include it. However, this reference
says that if you omit the extensions it will look for the icon file
name with the extension. Like when you want to assign the logo for
your app, it is enough to write 'Logo' in the Info.plist file, because
Cocoa knows that it should look for the Logo.icns file since it is
nested under the CFBundleIconFile key.
http://developer.apple.com/library/mac/#documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
Anyway, I did supply the CFBundleTypeIconFile key with the complete
file name like, myDocumentIcon.icns, and it registers it both in the
plist file and in the target's property panel. I even looked at
TextEdit source code and copied the rtf.icns to see if it works, and
it still saves the data with the plain white icon.
Does it have something to do with my data being saved in binary
format?
On 3 Nov., 18:12, Sherm Pendley <email@hidden> wrote:
> On Wed, Nov 3, 2010 at 11:50 AM, PJBorges <email@hidden> wrote:
> > Some things to check:
>
> >> Second, did you forget to include the extension, or was that
> >> just a typo in your email?
> > I haven't included the extentions, icns, since the
> > documentation says that it is not necessary.
>
> I double-checked the docs before replying, and it includes the
> extension both in the inspector panel, and in the example .plist text:
>
> <http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptua...>
>
> 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