faqts : Computers : Programming : Application Frameworks : Macintosh : Cocoa

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 7 people (0%) answered Yes
Recently 0 of 7 people (0%) answered Yes

Entry

How do I obtain the icon that the Finder would use for a given file type (TIFF, GIF, TXT, etc)?

Apr 30th, 2002 14:05
Christopher Holland, John C. Randolph


Try this:
NSString *type = @"tiff" // for example..
NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFileType:type];