• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFBundleIconFile: heiß or hot?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFBundleIconFile: heiß or hot?


  • Subject: Re: CFBundleIconFile: heiß or hot?
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 28 Aug 2008 19:38:27 +0700


On 28 Aug 2008, at 14:37, Michael Nickerson wrote:


On Aug 28, 2008, at 2:15 AM, Gerriet M. Denkmann wrote:


// this always works, regardless of name:
- (IBAction)ImageNameD: sender;
{
NSBundle *mainBundle = [ NSBundle mainBundle ];
NSDictionary *infoDictionary = [ mainBundle infoDictionary ];
NSString *iconFile = [ infoDictionary objectForKey: @"CFBundleIconFile" ];
NSImage *image = [ NSImage imageNamed: iconFile ];
[ imageView setImage: image ];
}



You can make that shorter, by removing the infoDictionary ivar and changing the iconFile one to [mainBundle objectForInfoDictionaryKey:@"CFBundleIconFile"].
Yes, thank you. Have changed this.


Could someone please show me, where the valid values for CFBundleIconFile are documented?
Tiger 10.4.11.



Property List Key Reference:
<http://developer.apple.com/documentation/MacOSX/Conceptual/ BPRuntimeConfig/Articles/PListKeys.html#//apple_ref/doc/uid/ 20001431-BCIJIJBH>

This document says:

"CFBundleIconFile
This key identifies the file containing the icon for the bundle. The filename you specify does not need to include the.icns extension, although it may. The Finder looks for the icon file in the Resources directory of the bundle.


If your bundle uses a custom icon, you must specify this property. If you do not specify this property, the Finder (and other applications) display your bundle with a default icon."

Does not say anything like: "Do not use 'heiß' or any other German words".



And, to answer the question of Jean-Daniel Dupas:

-[NSApp applicationIconImage] does return the correct picture, regardless whether it is called "heiß" or "hot".

But, another problem: when I run my app with CFBundleIconFile = "heiß" the picture in the dock is just the default app icon.

Kind regards.

Gerriet.



_______________________________________________

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


  • Follow-Ups:
    • Re: CFBundleIconFile: heiß or hot?
      • From: "Shawn Erickson" <email@hidden>
References: 
 >CFBundleIconFile: heiß or hot? (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: CFBundleIconFile: heiß or hot? (From: Michael Nickerson <email@hidden>)

  • Prev by Date: Re: NSMutableDictionary, NSNumber and more memory management
  • Next by Date: Re: Creating Interface
  • Previous by thread: Re: CFBundleIconFile: heiß or hot?
  • Next by thread: Re: CFBundleIconFile: heiß or hot?
  • Index(es):
    • Date
    • Thread