• 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: email@hidden
  • Date: Mon, 23 Aug 2010 20:59:22 -0600

OK.

cmd-double click does nothing for me and I also get : error: 'kToolbarDesktopFolderIcon' was not declared in this scope

What am I dong wrong?

-koko


On Aug 23, 2010, at 6:20 PM, Dave DeLong wrote:

Yep! If you cmd-double click in the constant, you'll be taken to a file with a whole bunch of similar icon constants. They're grouped by category.

Dave

Sent from my iPhone

On Aug 23, 2010, at 6:02 PM, email@hidden wrote:

Thanks.

I "assume" I can get downloads , music et al the same way>

Am coding now!

-koko

kToolBarDownloadsFolderIcon

On Aug 23, 2010, at 4:48 PM, davedelong wrote:

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: Ken Thomases <email@hidden>
References: 
 >Re: Another Icon Question (From: davedelong <email@hidden>)
 >Re: Another Icon Question (From: email@hidden)
 >Re: Another Icon Question (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: Documentation for -release is not quite true
  • Next by Date: Re: Another Icon Question
  • Previous by thread: Re: Another Icon Question
  • Next by thread: Re: Another Icon Question
  • Index(es):
    • Date
    • Thread