• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iconForFile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: Re: Checking a method for parameter types via SEL
  • Next by Date: Re: Copying large files with progress indicator
  • Previous by thread: iconForFile
  • Next by thread: Tracking the mouse in a cell in a NSTableView
  • Index(es):
    • Date
    • Thread