Re: I need a milder application badge (solution)
Re: I need a milder application badge (solution)
- Subject: Re: I need a milder application badge (solution)
- From: Kyle Sluder <email@hidden>
- Date: Sat, 25 Jul 2009 11:15:40 -0700
On Jul 25, 2009, at 10:54 AM, Jay Reynolds Freeman <email@hidden
> wrote:
The doc tile is the tiny image of the application main window that
appears in the dock when you minimize the application. The dock
icon is (usually) the regular application icon, that appears in the
dock when the application is launched, and which you may have
sitting there permanently for ease of access to a commonly used
application.
This is incorrect. The dock tile is the thing that sits in the dock;
by default it draws the application's icon image (or the image in the
app bundle when the app isn't running). There is no such thing as a
"dock icon" that exists as a concept separate from "dock tile".
There is an interface for making run-time changes to the view used
for drawing the dock tile; namely NSDockTile.setContentView: , but I
do not find such an interface for the dock icon.
You have two choices: change your application's icon using -
[NSApplication setApplicationIconImage:], or customize the dock tile
returned by -[NSApplication dockTile]. Neither of these changes will
persist after your application quits.
What is the Cocoa way to alter an NSImage
dynamically (or perhaps alter a copy of
an original image), at run-time, while
preserving as transparent any transparent
areas it may have to begin with?
You've touched on a few separate topics here. Sounds like you might
want to read the Quartz documentation to get an idea of how graphics
composition works. And play around with Photoshop a bit; the Quartz
model is quite similar.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden