FROM : Shawn Erickson
DATE : Tue Aug 01 01:19:43 2006
On 7/31/06, Gerriet M. Denkmann <<email_removed>> 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
DATE : Tue Aug 01 01:19:43 2006
On 7/31/06, Gerriet M. Denkmann <<email_removed>> 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
| Related mails | Author | Date |
|---|---|---|
| Gerriet M. Denkman… | Jul 31, 23:08 | |
| Shawn Erickson | Aug 1, 01:19 |






Cocoa mail archive

