Re: setApplicationIconImage
Re: setApplicationIconImage
- Subject: Re: setApplicationIconImage
- From: Chuck Soper <email@hidden>
- Date: Mon, 26 Apr 2004 12:29:25 -0700
At 11:10 AM -0700 4/26/04, Troy Stephens wrote:
On Apr 26, 2004, at 9:49 AM, Chuck Soper wrote:
Hello,
I have an application icon that uses different (not scaled) images
for 16x16 and 128x128. When I draw a badge on my application icon
in the dock, I use:
[NSApp setApplicationIconImage: newAppImage];
Doing this causes my application icon to be scaled in the dock for
small icon sizes. When my application is running, a small
application icon in the dock looks worse than when the application
is not running. Is there anyway I can avoid this problem?
I haven't yet tested what I just described, but I think that I'm
correct. The source of my newAppImage is an icns file.
Chuck
Hi Chuck,
What you've run into is the fact that -setApplicationIconImage:
always renders the dock tile using the highest-resolution
representation you give it, rather than falling back to smaller
representations when appropriate for a smaller tile size. This
approach was partly motivated by performance. (It avoids a
round-trip to the window server to get the dock window's size.)
If you think the quality of the result is not acceptable, please do
file a bug report (bugreport.apple.com) that includes screen grabs
illustrating the problem at small tile sizes, and we can reevaluate
whether the implementation is appropriate.
In what sense does the image look "worse" in your case? Is it more aliased?
If that's the issue, I suppose you might try blurring the image a
bit to see whether that helps (e.g. copy it into a new image, using
a setting of NSImageInterpolationHigh in your graphics context).
Troy Stephens
Cocoa frameworks, Apple
Hi Troy,
Thanks very much for your response. Right now I'm unsure if the
quality of the result will be unacceptable. My icon images are not
yet finalized. I posted the question because my icon design is partly
dependent on how I can display it in the dock. When I say that my
image looks "worse" I think it's because the image is very detailed
at 128x128, but when it's smaller the detail causes the icon to look
like a blob.
I think that I should be able to reduce the detail so that the image
looks better at all sizes. If I'm not able to do this (and the icon
looks better at smaller sizes in the Finder) then I'll consider
filing a bug report with screen shots of my icon in the dock. Thanks
again.
Chuck
_______________________________________________
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.