Re: iconForFile
Re: iconForFile
- Subject: Re: iconForFile
- From: "Shawn Erickson" <email@hidden>
- Date: Mon, 31 Jul 2006 16:19:43 -0700
On 7/31/06, Gerriet M. Denkmann <email@hidden> wrote:
So: how do I get the default document icon without a log message?
Use the API that better fits what you are trying to do :)
Review the last code example on the following page...
<http://developer.apple.com/documentation/Cocoa/Conceptual/Workspace/Tasks/InformationAboutFiles.html>
..basically use -[NSWorkspace iconForFileType:] and in your case
likely pass in NSFileTypeForHFSTypeCode(kGenericDocumentIcon) as the
type.
-Shawn
_______________________________________________
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
References: | |
| >iconForFile (From: "Gerriet M. Denkmann" <email@hidden>) |