• 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: David Remahl <email@hidden>
  • Date: Fri, 19 Apr 2002 15:11:59 +0200

It won't give you custom icons, though. And I think SNAX already includes
this feature of using generic icons instead of file-by-file.

/ David

> 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.

References: 
 >Re: iconForFile is slow (From: Esteban <email@hidden>)

  • Prev by Date: Displaying Hyperlink in Cocoa
  • Next by Date: mixed cell types in tableColumn
  • Previous by thread: Re: iconForFile is slow
  • Next by thread: Re: iconForFile is slow
  • Index(es):
    • Date
    • Thread