• 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: RE : How are we supposed to retrieve the generic bundle icon?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE : How are we supposed to retrieve the generic bundle icon?


  • Subject: Re: RE : How are we supposed to retrieve the generic bundle icon?
  • From: Iceberg-Dev <email@hidden>
  • Date: Tue, 11 Nov 2008 20:50:03 +0100


On Nov 11, 2008, at 6:17 PM, Etienne Guérard wrote:

Did you take a look at IconServices GetIconRef() function using one of the generic Finder icons constant?

I did. That's part of the "because:" section.

On Nov 11, 2008, at 8:15 PM, Gregory Weston wrote:

What are you really trying to illustrate with this icon? Are you sure the Lego® block is the right thing to show?

Standard Apple Plugins that use this icon. Yes, I'm sure.

-------- Message d'origine--------
De: cocoa-dev-bounces+eguerard=email@hidden de la part de Iceberg-Dev
Date: mar. 11/11/2008 17:36
À: email@hidden
Objet : How are we supposed to retrieve the generic bundle icon?


I need to get a NSImage of the generic bundle icon. (Mac OS X 10.4 or
later)

I'm currently using this:

[[NSImage alloc] initWithContentsOfFile:@"/System/Library/
CoreServices/CoreTypes.bundle/Contents/Resources/KEXT.icns"]

because:

- NSFileTypeForHFSTypeCode('BNDL') does not work. It returns a
generic document icon.

- I haven't found an appropriate constant for NSFileTypeForHFSTypeCode.



_______________________________________________

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


References: 
 >How are we supposed to retrieve the generic bundle icon? (From: Iceberg-Dev <email@hidden>)
 >RE : How are we supposed to retrieve the generic bundle icon? (From: Etienne Guérard <email@hidden>)

  • Prev by Date: Re: another n00b question -- addObserver weirdness
  • Next by Date: RE : RE : a newbie question
  • Previous by thread: RE : How are we supposed to retrieve the generic bundle icon?
  • Next by thread: Re: How are we supposed to retrieve the generic bundle icon?
  • Index(es):
    • Date
    • Thread