Re: Finder Icon Badging...
Re: Finder Icon Badging...
- Subject: Re: Finder Icon Badging...
- From: Rainer Brockerhoff <email@hidden>
- Date: Tue, 3 Feb 2004 07:13:34 -0200
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.
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"It's extremely unlucky to be superstitious, for no other reason
than it is always unlucky to be colossally stupid." (Stephen Fry)
Weblog:
http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
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.