On 2023-06-27 15:22:28 -0700 Marco Cawthorne <[email protected]> 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.
