Re: NSWorkspace iconForFile
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