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