Re: RE : How are we supposed to retrieve the generic bundle icon?
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