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: [EMAIL PROTECTED] de la part
de Iceberg-Dev
Date: mar. 11/11/2008 17:36
À: cocoa-dev@lists.apple.com
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 (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 [EMAIL PROTECTED]