Re: Icon question
Re: Icon question
- Subject: Re: Icon question
- From: John Stiles <email@hidden>
- Date: Tue, 26 Jul 2005 16:26:31 -0700
Wow, two responses in under ten minutes! And both are useful!
I love Cocoa-Dev :) :) :)
On Jul 26, 2005, at 4:26 PM, Vince DeMarco wrote:
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