• 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: NSImage scaling and ugliness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage scaling and ugliness


  • Subject: Re: NSImage scaling and ugliness
  • From: Christian Walther <email@hidden>
  • Date: Mon, 10 Jul 2006 22:05:42 +0200

Stephen F. Booth wrote:
My code for grabbing the icon looks like:

NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:filename];
[icon setSize:NSMakeSize(16, 16)];

I have tried setting the scalesWhenResized property, with identical results. The icons that aren't pretty are mainly ones that have no 16x16 representation, but since Finder can display them I assume there is something I'm not doing.

Looks like the thing you're not doing is

[[NSGraphicsContext currentContext] setImageInterpolation: NSImageInterpolationHigh];


-Christian _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSImage scaling and ugliness (From: "Stephen F. Booth" <email@hidden>)

  • Prev by Date: Re: NSWindows/NSPanels/NSDrawers are NIL
  • Next by Date: Re: Tables in TextView malformed after archiving and unarchiving
  • Previous by thread: NSImage scaling and ugliness
  • Next by thread: Re: NSImage scaling and ugliness
  • Index(es):
    • Date
    • Thread