Re: Another Icon Question
Re: Another Icon Question
- Subject: Re: Another Icon Question
- From: Dave DeLong <email@hidden>
- Date: Mon, 23 Aug 2010 18:20:14 -0600
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