[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSImage caching bug?
From: |
Marco Cawthorne |
Subject: |
Re: NSImage caching bug? |
Date: |
Tue, 27 Jun 2023 15:54:46 -0700 |
On 2023-06-27 15:22:28 -0700 Marco Cawthorne <marco@icculus.org> wrote:
I'm running into an issue with NSImage's initWithContentsOfURL:
where all images I'm trying to load are replaced with the first valid
result. Even when paths are different. It seems like it returns
1 valid image per domain. I'm guessing it's trying to optimise
somewhere which is going wrong.
I'm running a recent version of GNUstep I've compiled myself.
Marco Cawthorne
I went into libs-gui/Source/NSImageRep.m and inside
imageRepsWithContentsOfURL set the argument of
resourceDataUsingCache from YES to NO which fixes
the problem I was having. So my assumptions about
the cache being too generous appear to be correct.
Obviously not a real fix, but good enough for me to keep
working. When I have some time I can try looking into
writing a patch but some of you on the list may be faster
anyway.