Re: iconForFile
Re: iconForFile
- Subject: Re: iconForFile
- From: "I. Savant" <email@hidden>
- Date: Fri, 16 Nov 2007 09:53:43 -0500
On 11/16/07, Lorenzo <email@hidden> wrote:
> Did you try to display the icons of the folders in the Home folder?
> I mean, Music, Pictures, Documents, Public, Sites...
> Anyway iconForFile works slowly even with normal folders.
> I could display a pre-loaded folder icon, but in this case I cannot longer
> show the icons of the above special folders.
Have you used the appropriate profiling tools to verify that this is
indeed where the slowdown occurs? You have not addressed this crucial
question. I just did a quick test myself and this:
NSImage * img = [[NSWorkspace sharedWorkspace] iconForFile:pathToSomeFile];
... executes in a very small fraction of a second. If you're
assuming that's where the slow-down is, test your assumptions using
the proper tools. Evidence so far suggests this is not where your
problem is.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden