• 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
CFBundleIconFile: heiß or hot?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFBundleIconFile: heiß or hot?


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


// this shows the application default icon if CFBundleIconFile = "heiß" // works ok for CFBundleIconFile = "hot"

- (IBAction)iconForFileN: sender;
{
NSBundle *mainBundle = [ NSBundle mainBundle ];
NSString *bundlePath = [ mainBundle bundlePath ];
NSImage *image = [ [ NSWorkspace sharedWorkspace ] iconForFile: bundlePath ];
[ imageView setImage: image ];
}



// 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 ];
}


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


Guessing around (name must be American?), (must NOT be German?), (may contain only three characters?), (only one vowel allowed?) is not really satisfying.


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: Jean-Daniel Dupas <email@hidden>
    • Re: CFBundleIconFile: heiß or hot?
      • From: Michael Nickerson <email@hidden>
  • Prev by Date: Re: Core Data - use of simple accessors vs. KVC
  • Next by Date: Re: Bindings and empty text field nil assigments
  • Previous by thread: Re: Layer-Backed Views, Mouse, Presentation Tree Bug?
  • Next by thread: Re: CFBundleIconFile: heiß or hot?
  • Index(es):
    • Date
    • Thread