Re: Finder Icon Badging...
Re: Finder Icon Badging...
- Subject: Re: Finder Icon Badging...
- From: Christopher Pavicich <email@hidden>
- Date: Tue, 03 Feb 2004 16:00:06 -0500
Rainer, Scott, et al.
I want to (semi-) permanently tag a documents icon. I am trying
to show SCM state in the Finder. Checkout
http://scplugin.tigris.org to get an idea of what I am doing.
1. Thanks for the code. I fumbled around with IconServices for a while and I wanted to pull my hair out.
2. I think Rainer's code does what I want. I couldn;t find an example badge to use, but
when I ran it, it did replace the files icon. It took a while to for the finder to notice that
the icon changed. Is there someway around this?
Rainer, do you have an example badge that you would mind sending me off list?
3. I will check into IconFamily.
Thanks again for all your help. Its much appreciated.
CMP
On Tuesday, February 03, 2004, at 03:50PM, Scott Anguish <email@hidden> wrote:
>
as far as code that works for this type of badging then..
>
>
look for Troy Stephen's Icon Family framework. That's what you need.
>
It allows you to set the icon for a file from an NSImage. Google
>
should provide the link.
>
>
>
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.
>
>
>
>
>
> --
>
> 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.
>
>
>
--cmp
email@hidden
_______________________________________________
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.