• 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: Getting the icon of an opened folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the icon of an opened folder


  • Subject: Re: Getting the icon of an opened folder
  • From: Todd Yandell <email@hidden>
  • Date: Mon, 8 Aug 2005 20:23:30 -0500

Is it possible to get the NSImage object of an opened folder representation? I mean the icon
that is displayed when items are dragged onto a folder with standard icon in Finder.

You can load the image from "/System/Library/CoreServices/ CoreTypes.bundle/Contents/Resources/OpenFolderIcon.icns". Just "initWithContentsOfFile:" on an NSImage and give it that path. If you need the closed version, it's in the same folder and named "GenericFolderIcon.icns".


Todd
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Getting the icon of an opened folder (From: "Prady K" <email@hidden>)

  • Prev by Date: Re: refreshObject:mergeChanges: vs. stale transient properties
  • Next by Date: Re: Threads & communication performance
  • Previous by thread: Getting the icon of an opened folder
  • Next by thread: refreshObject:mergeChanges: vs. stale transient properties
  • Index(es):
    • Date
    • Thread