Re: Another Icon Question
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