• 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: NSWorkspace iconForFile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWorkspace iconForFile


  • Subject: Re: NSWorkspace iconForFile
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 6 Jul 2010 18:52:53 +0200

Le 6 juil. 2010 à 18:45, Kyle Sluder a écrit :

> On Tue, Jul 6, 2010 at 9:42 AM, Jean-Daniel Dupas
> <email@hidden> wrote:
>> Not for me. It returns the expected icon:
>>
>> [[NSWorkspace sharedWorkspace] iconForFile:[@"~/Desktop" stringByStandardizingPath]] returns the desktop folder icon.
>
> I believe the OP is referring to the icon you see when you drag the
> Desktop folder to the sidebar in a Finder window. It loses its
> embossed folderish appearance. Music, photos, and downloads do the
> same.

so this is the toolbar icons:

[[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kToolbarMusicFolderIcon)];

[[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kToolbarDownloadsFolderIcon)];

…

-- Jean-Daniel




_______________________________________________

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: NSWorkspace iconForFile
      • From: Kyle Sluder <email@hidden>
References: 
 >NSWorkspace iconForFile (From: email@hidden)
 >Re: NSWorkspace iconForFile (From: Jean-Daniel Dupas <email@hidden>)
 >Re: NSWorkspace iconForFile (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSWorkspace iconForFile
  • Next by Date: Re: NSWorkspace iconForFile
  • Previous by thread: Re: NSWorkspace iconForFile
  • Next by thread: Re: NSWorkspace iconForFile
  • Index(es):
    • Date
    • Thread