Skip navigation.
 
mlRe: I'm losing my memory (GC & NSImageView)
FROM : Uli Kusterer
DATE : Mon Nov 05 01:18:23 2007

Am 04.11.2007 um 23:56 schrieb Stuart Rogers:
> 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).  When I feed it a new image, the old one
> should no longer have any strong references unless there's some
> caching going on by NSImageView (or something else within its
> framework).  This is where I start getting out of my depth.



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

Cheers,
-- M. Uli Kusterer
http://www.zathras.de

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