Re: iconForFile
Re: iconForFile
- Subject: Re: iconForFile
- From: Lorenzo <email@hidden>
- Date: Fri, 16 Nov 2007 18:15:32 +0100
You were right. I found the bug. My mistake. Sorry.
Best Regards
--
Lorenzo
email: email@hidden
> From: "I. Savant" <email@hidden>
> Date: Fri, 16 Nov 2007 09:53:43 -0500
> To: Lorenzo <email@hidden>
> Cc: Ron Fleckner <email@hidden>, email@hidden
> Subject: Re: iconForFile
>
> 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