• 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: iconForFile is slow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iconForFile is slow


  • Subject: Re: iconForFile is slow
  • From: Esteban <email@hidden>
  • Date: Wed, 17 Apr 2002 23:58:35 -0700

I havent tried this but might iconForFileType work for you?

If I guess correctly on the implementation might call iconForFileType in
conjuction with getInfoForFile

maybe something like this

[[NSWorkspace sharedWorkspace] getInfoForFile:path application:appName
type:fileType];
icon = [[NSWorkspace sharedWorkspace] iconForFileType:fileType];

that might be faster... than calling iconForFile

hope that helps

-Esteban

On Wednesday, April 17, 2002, at 11:42 PM, Steve Gehrman wrote:

> icon = [[NSWorkspace sharedWorkspace] iconForFile:path];
>
> iconForFile is very slow. Anyone written a faster replacement? One
> problem is that I usually only need the 16x16 imagerep, but this call
> returns a 16x16, 32x32 and 128x128.
>
> Thanks,
>
> -steve
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: iconForFile is slow
      • From: David Remahl <email@hidden>
References: 
 >iconForFile is slow (From: Steve Gehrman <email@hidden>)

  • Prev by Date: iconForFile is slow
  • Next by Date: Class hierarchy weirdness.
  • Previous by thread: iconForFile is slow
  • Next by thread: Re: iconForFile is slow
  • Index(es):
    • Date
    • Thread