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 <sherm.pend...@gmail.com> wrote: > On Wed, Nov 3, 2010 at 11:50 AM, PJBorges <philipjbor...@gmail.com> 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 (cocoa-...@lists.apple.com) > > 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:http://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev-garchive-9... > > This email sent to cocoa-dev-garchive-98...@googlegroups.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com