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: Matt Neuburg <email@hidden>
- Date: Fri, 18 Aug 2006 09:28:20 -0700
- Thread-topic: What's the fastest way to get icons for file/folders?
On Fri, 18 Aug 2006 08:11:50 -0400, "Alan Smith" <email@hidden>
said:
>Hi everyone,
>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(). After writting some code I had a
>nice NSImage category that got the icon at the path I specified. But
>there are some paths (like: /Projects/App Controller, which is the
>path to a directory) that it can't release the IconRef to. So, I've
>pretty much given up on that and was wondering what my alternatives
>were.
I believe that GetIconRefFromFileInfo will always work. Also, notice this:
<http://www.cocoabuilder.com/archive/message/cocoa/2002/1/18/15407>
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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