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
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 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

