Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iconForFile



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >iconForFile (From: "Gerriet M. Denkmann" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.