• 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: 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
References: 
 >What's the fastest way to get icons for file/folders? (From: "Alan Smith" <email@hidden>)
 >Re: What's the fastest way to get icons for file/folders? (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: What's the fastest way to get icons for file/folders?
  • Next by Date: hex string for long
  • 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