Skip navigation.
 
mlRe: I'm losing my memory (GC & NSImageView)
FROM : Stuart Rogers
DATE : Mon Nov 05 22:16:26 2007

>> I'm not sure if there's anything I can do here - once the NSImage
>> is created I pass it on to my NSImageView and forget it (I'm not
>> caching it in my code).

>
> Is this NSImage loaded from a file ? In that case, NSImage does
> some cacheing under the hood, as far as I've been told. ... It does
> so both with and without GC, to speed up cases where the same
> image is requested over and over again.


I so much wanted this to be the answer, so after creating the NSImage
I inserted [image setCacheMode:NSImageCacheNever]; but it
didn't make any difference.  But thanks for the pointer - I'm sure it'll
come in useful to me in this project.

For the record, the image is read from file via a CIImage - it then has
various filters applied before being used to create the NSImage, which
I understand is where the actual image file gets read from disc.

Stuart

Related mailsAuthorDate
mlI'm losing my memory (GC & NSImageView) Stuart Rogers Nov 4, 16:10
mlRe: I'm losing my memory (GC & NSImageView) Erik Buck Nov 4, 16:51
mlRe: I'm losing my memory (GC & NSImageView) Bill Bumgarner Nov 4, 17:21
mlRe: I'm losing my memory (GC & NSImageView) Stuart Rogers Nov 4, 23:56
mlRe: I'm losing my memory (GC & NSImageView) Uli Kusterer Nov 5, 01:18
mlRe: I'm losing my memory (GC & NSImageView) Rob Keniger Nov 5, 05:15
mlRe: I'm losing my memory (GC & NSImageView) Bill Bumgarner Nov 5, 05:47
mlRe: I'm losing my memory (GC & NSImageView) Stuart Rogers Nov 5, 22:16