• 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: Named image for regular folder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How does NSButtonCell do its drawing?
  • Next by Date: Re: programming in C++ ?
  • Previous by thread: Re: How does NSButtonCell do its drawing?
  • Next by thread: Re: programming in C++ ?
  • Index(es):
    • Date
    • Thread