Re: Named image for regular folder?
Re: Named image for regular folder?
- Subject: Re: Named image for regular folder?
- From: Uli Kusterer <email@hidden>
- Date: Fri, 1 Feb 2008 12:10:21 +0100
On 30.01.2008, at 17:55, Matt Gough wrote:
NSImage* folderImage = nil;
OSStatus err = GetIconRef(kOnSystemDisk, kSystemIconsCreator,
kGenericFolderIcon, &carbonIcon);
You can also use NSFileTypeForHFSTypeCode() to turn
kGenericFolderIcon into a string that you can pass to iconForFileType:
to get at standard icons. That will work on older OS X releases, too.
See <http://www.zathras.de/angelweb/blog-get-standard-system-
icons.htm> for an example.
Cheers,
-- M. Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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