Le 6 juil. 2010 à 18:45, Kyle Sluder a écrit : > On Tue, Jul 6, 2010 at 9:42 AM, Jean-Daniel Dupas > <devli...@shadowlab.org> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com