• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: setApplicationIconImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setApplicationIconImage


  • Subject: Re: setApplicationIconImage
  • From: Troy Stephens <email@hidden>
  • Date: Mon, 26 Apr 2004 11:10:33 -0700

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
_______________________________________________
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.


  • Follow-Ups:
    • Re: setApplicationIconImage
      • From: Chuck Soper <email@hidden>
References: 
 >setApplicationIconImage (From: Chuck Soper <email@hidden>)

  • Prev by Date: Re: KeyValue Observing rant
  • Next by Date: Re: NSTableView and multiple NSArrayControllers
  • Previous by thread: setApplicationIconImage
  • Next by thread: Re: setApplicationIconImage
  • Index(es):
    • Date
    • Thread