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: Uli Kusterer <email@hidden>
- Date: Mon, 5 Nov 2007 01:18:23 +0100
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
_______________________________________________
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