Re: Drawing application dock icon from Cocoa?
Re: Drawing application dock icon from Cocoa?
- Subject: Re: Drawing application dock icon from Cocoa?
- From: Stephane Sudre <email@hidden>
- Date: Fri, 12 Dec 2003 15:42:11 +0100
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.