Re: Drawing application dock icon from Cocoa?
Re: Drawing application dock icon from Cocoa?
- Subject: Re: Drawing application dock icon from Cocoa?
- From: Kaelin Colclasure <email@hidden>
- Date: Fri, 12 Dec 2003 07:01:28 -0800
That certainly looks simple enough... Thanks for the pointers.
-- Kaelin
On Dec 12, 2003, at 6:42 AM, Stephane Sudre wrote:
>
On 2003.12.12, at 02:42 午後, Kaelin Colclasure wrote:
>
>
> I have found Apple's "Tiler" example, which shows how your
>
> application can draw its own dock icon using Carbon APIs. Is there an
>
> NSView-based way do accomplish this under Cocoa? Or does this require
>
> using the Carbon APIs and Quartz directly?
>
>
Basically,
>
>
you create a NSImage, lock the Focus on it and draw what you want ,
>
then you unlock the Focus and use [NSApp
>
setApplicationIconImage:myImage];
>
>
IIRC, there's a sample code from one WWDC 03 session (Cocoa Tips
>
maybe) which shows this and the badge thing too.
>
_______________________________________________
>
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.
_______________________________________________
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.