Re: programming the dock icon
Re: programming the dock icon
- Subject: Re: programming the dock icon
- From: John Timmer <email@hidden>
- Date: Wed, 09 Apr 2003 08:30:11 -0400
>
To make changes to the application's Dock icon, AFAIK, you also have to
>
use Carbon. See
>
<http://developer.apple.com/techpubs/macosx/Carbon/
>
HumanInterfaceToolbox/DockManager/Dock_Manager/dockmngr_refchap/
>
function_group_3.html>
Actually, it's quite a bit easier. In NSApplication, there's:
- (void) setApplicationIconImage: (NSImage *) anImage
So you can do all the compositing to an NSImage and just dump that to the
dock icon. It seems to be retained for you after calling this (ie - you can
release the NSImage in your code with no ill effect).
Cheers,
John
_______________________________________________
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.