• 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: Another Icon Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another Icon Question


  • Subject: Re: Another Icon Question
  • From: davedelong <email@hidden>
  • Date: Mon, 23 Aug 2010 15:48:41 -0700 (PDT)
  • Date-warning: Date header was inserted by spool004.mac.com

Assuming that you're talking about the icon that looks like a miniature screenshot of the desktop, that's a Toolbar icon, and you can easily retrieve it like this:

[[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kToolbarDesktopFolderIcon)]

Enjoy!

Dave

On Aug 23, 2010, at 04:07 PM, email@hidden wrote:

I am using -iconForFile to the an icon for the Desktop.

This returns a folder like icon.

What should be used to get the Desktop icon shown by the Finder?

-koko
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Another Icon Question
      • From: email@hidden
References: 
 >Another Icon Question (From: email@hidden)

  • Prev by Date: Re: Hidden file and 64bits Cocoa
  • Next by Date: Re: Another Icon Question
  • Previous by thread: Another Icon Question
  • Next by thread: Re: Another Icon Question
  • Index(es):
    • Date
    • Thread