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
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 mails | Author | Date |
|---|---|---|
| Stuart Rogers | Nov 4, 16:10 | |
| Erik Buck | Nov 4, 16:51 | |
| Bill Bumgarner | Nov 4, 17:21 | |
| Stuart Rogers | Nov 4, 23:56 | |
| Uli Kusterer | Nov 5, 01:18 | |
| Rob Keniger | Nov 5, 05:15 | |
| Bill Bumgarner | Nov 5, 05:47 | |
| Stuart Rogers | Nov 5, 22:16 |






Cocoa mail archive

