Re: Finder Icon Badging...
Re: Finder Icon Badging...
- Subject: Re: Finder Icon Badging...
- From: Scott Anguish <email@hidden>
- Date: Tue, 3 Feb 2004 04:40:28 -0500
On Feb 3, 2004, at 4:13 AM, Rainer Brockerhoff wrote:
>
At 03:48 -0500 03/02/2004, Scott Anguish wrote:
>
> On Feb 2, 2004, at 7:28 PM, Rainer Brockerhoff wrote:
>
>> Here's the code I use, it seems to work well. Of course this has
>
>> little to do with Cocoa, you must do
>
>> #include <Carbon/Carbon.h>
>
>> ...
>
>
>
> A Cocoa solution to this problem was presented in the Cocoa Tips and
>
> Tricks session at WWDC. The code is available to attendees on the
>
> ADC site, and has been submitted to sample code (so everyone can have
>
> it).
>
>
>
> Anyways, here is the relevant method from the DotView class.
>
>
>
> - (void)updateApplicationBadge {
>
> ...
>
>
Just to keep the record clear...
>
>
Scott's code (or rather the DotView code) is for Dock icon badging,
>
which temporarily changes the application's icon in the dock. (XRay
>
has been doing this too for over a year BTW ;-)). I believe there's a
>
variation for changing minimized window icons in the dock, too,
>
floating around.
>
>
However, what Christopher asked for was permanently badging an icon as
>
seen in the Finder. This is described in the Icon Services docs at:
>
http://developer.apple.com/documentation/Carbon/Conceptual/
>
Icon_Service_nd_Utilities/03tasks/chapter_3_section_3.html
>
namely the 'badg' resource.
>
>
Ack, you're right. I've filed an enhancement request to allow
NSWorkspace to set the icon of a file, as well as get the data back.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.