Re: What's the fastest way to get icons for file/folders?
Re: What's the fastest way to get icons for file/folders?
- Subject: Re: What's the fastest way to get icons for file/folders?
- From: John Stiles <email@hidden>
- Date: Fri, 18 Aug 2006 15:21:20 -0700
On Aug 18, 2006, at 3:17 PM, Corbin Dunn wrote:
On Aug 18, 2006, at 5:11 AM, Alan Smith wrote:
I ran my code through Shark and found that NSWorkspace's iconForFile
is too slow for me to keep in my code. So I looked around and found
some stuff on GetIconRefFromFile().
When you run across something like this, be sure to log bugs.
BTW, did you experiment much with [[NSWorkspace sharedWorkspace]
iconForFileType:extensionString]?
I have some code that uses this, and incorporates a per-extension
cache as well to keep things fast. It worked pretty well.
_______________________________________________
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