Re: I'm losing my memory (GC & NSImageView)
Re: I'm losing my memory (GC & NSImageView)
- Subject: Re: I'm losing my memory (GC & NSImageView)
- From: Stuart Rogers <email@hidden>
- Date: Mon, 5 Nov 2007 21:16:26 +0000
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden