Re: iconForFile is slow
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.