Re: File Icon
Re: File Icon
- Subject: Re: File Icon
- From: Sam Goldman <email@hidden>
- Date: Sun, 04 Nov 2001 13:38:55 -0800
However, this is really REALLY slow. You might want to get the type of file
and use a generic icon if that is an option.
- Sam
On 11/4/01 11:56 AM, "Finlay Dobbie" <email@hidden> wrote:
>
On Sunday, November 4, 2001, at 07:45 pm, Joshua Clements wrote:
>
>
> Anyone know how to get the icon associated with a file that can be used
>
> in Cocoa?
>
>
RTFM NSWorkspace.
>
>
> I have located a function in Carbon "GetIconRefFromFile" which returns
>
> an IconRef.
>
> Is that IconRef usable in Cocoa for displaying on the screen?
>
>
Yes, indirectly, but you should probably use the NSWorkspace method.
>
>
-- Finlay
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev