Re: DockIcon with text
Re: DockIcon with text
- Subject: Re: DockIcon with text
- From: David Remahl <email@hidden>
- Date: Tue, 15 Jul 2003 22:44:53 +0200
Rhon,
Recreate the icon as an image (using [[NSImage imageNamed:@"AppIcon"]
copy])
Lock focus on the image.
Set the color of the text.
Use NSStringDrawing methods to composite the text onto the.
Unlock focus.
Use [NSApp setApplicationIconImage:].
Once more, cross posting _is_ unnecessary. Very few people are
subscribed to one of the lists and not the other, and in those cases
they probably are for a reason. Cross-posting is bad style, so just
avoid it!
/ Rgds, David
On tisdag 15 juli 2003, at 22.36PM, Rhon Fitzwater wrote:
First, I know I cross posted, but like I said before, not everyone is
subscribed to every mailing list ;-)
I need to know how to add text to my dock icon.. say i have a plain
black icon, then when my app updates the dock icon, i need it to add a
string ontop of the icon. I want it to show a percentage without
having to create 101 images (0-100%).
If it worked liked Apple's mail does with the badges, that would be
fine.
Can someone show me how to do this, or at least point me in the right
direction.
Thanks,
-Rhon
_______________________________________________
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.