Creating memory efficient thumbnails using an NSImageView (cocoa/OSX)
I am creating small NSImageViews (32x32 pixels) from large images often 512x512 or even 4096 x 2048 for an extreme test case. My problem is that with my extreme test case, my applicaiton memory footprint seems to go up by over 15MB when I display my thumbnail, this makes me think the NSImage is being stored in memory as a 4096x2048 instead of 32x32 and I was wondering if there is a way to avoid this. Here is the process I go through to create the NsImageView: • First I create an NSImage using initByReferencingFile: (pointing to the 4096x2048 .png file) • Next I initialize the NSImageView with