• 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: Folder Icons In Sidebar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder Icons In Sidebar?


  • Subject: Re: Folder Icons In Sidebar?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Thu, 10 Feb 2005 11:54:01 +0100

At 22:00 Uhr +0000 09.02.2005, Oliver Cameron wrote:
Does anyone know a way to access the folder icons the Finder uses for the side bar icons? Like the application icon becomes the pencil and ruler.

IIRC if you want the actual sidebar contents, there's a com.apple.sidebarlists.plist with the sidebar items as AliasRecords wrapped in NSData. That .plist file also contains the icons as some sort of NSData.


Also, is there a way to access the Folder icons used by the Finder in the normal view? Like say, when you rename a folder to "Public", it changes its icon to the folder with the yellow badge on.

NSWorkspace's iconForFile: should give you the proper image. If it doesn't, you can always use Carbon's Icon Services (after filing a bug against NSWorkspace). I think I have code flying around here somewhere that wraps Icon Services as a nice little Cocoa class. Holler if NSWorkspace doesn't do the job.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: 
 >Folder Icons In Sidebar? (From: Oliver Cameron <email@hidden>)

  • Prev by Date: Re: Fade out the window content
  • Next by Date: Re: Newbie design question: protocol vs. delegate vs. class-cluster
  • Previous by thread: Re: Folder Icons In Sidebar?
  • Next by thread: Threading...
  • Index(es):
    • Date
    • Thread