On Jan 7, 2009, at 1:42 PM, David wrote:
Hello,Is there a way to obtain the icon that finder uses to display
for a
file system object? Such things as the folder icon for folders, PDF
icon for
pdfs etc.
You can use -[NSWorkspace iconForFile:] if you want to get a specific
file's icon, respecting any custom icons.
Use -[NSWorkspace iconForFileType:] if you want to get the icon for a
type. The type can be a filename extension or an HFS type code
encoded via NSFileTypeForHFSTypeCode(). On Leopard or later it can
also be a UTI.
-Peter
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com