Re: Icon question
Re: Icon question
- Subject: Re: Icon question
- From: Vince DeMarco <email@hidden>
- Date: Tue, 26 Jul 2005 16:26:13 -0700
On Jul 26, 2005, at 4:12 PM, John Stiles wrote:
Given a particular file extension (TXT, RTF, JPG, etc), how can I
get an NSImage containing the default 16x16 icon that represents
that file type?
I'm sure it's possible, and I can think of some hokey ways to do
it, but I don't know the official technique.
Thanks :)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Look at NSWorkspace.h
- (NSImage *)iconForFile:(NSString *)fullPath;
- (NSImage *)iconForFiles:(NSArray *)fullPaths;
- (NSImage *)iconForFileType:(NSString *)fileType;
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden