Re: File Icon
Re: File Icon
- Subject: Re: File Icon
- From: Joshua Clements <email@hidden>
- Date: Tue, 6 Nov 2001 00:53:36 -0500
Thanks Finlay, for the pointer to NSWorkspace.
I've got that returning me an icon but it doesn't look
so hot at 16x16. I'm assuming that NSWorkspace is
returning me the 32x32 icon and the NSImageCell is
scaling it down to 16x16. Is there a way to get load the 16x16 icon?
On Sunday, November 4, 2001, at 02:56 PM, Finlay Dobbie 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