In my cocoa app, how can I load/scale my .icns file? In this case, I want to load up my 16x16 image.
+1
A:
Load it as an NSImage
(+imageNamed:
), grab one of its NSImageRep
s (-representations
), then call setSize:NSMakeSize(16,16)
on it.
Dave DeLong
2010-06-12 01:08:01