• 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: What's the fastest way to get icons for file/folders?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: What's the fastest way to get icons for file/folders?
      • From: "Alan Smith" <email@hidden>
  • Prev by Date: Re: Custom NSButtonCell and NSTableColumn binding
  • Next by Date: Printing & page size
  • Previous by thread: Re: What's the fastest way to get icons for file/folders?
  • Next by thread: Re: What's the fastest way to get icons for file/folders?
  • Index(es):
    • Date
    • Thread