I find NSImageView with icns file does not display color correctly on Sonoma.
As the test app shows, on the retina display, if the image view size is 18 or less, the problem happens. On non-retina display, the threshold is 42.
The correct colors should be red, yellow, and blue.
_imageView1.image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/AlertStopIcon.icns"];
_imageView2.image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Actions.icns"];
_imageView3.image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/BookmarkIcon.icns"];
And if put the icns file into xcode project, then change code to
_imageView3.image = [NSImage imageNamed:@"BookmarkIcon"];
The problem still exists.
Wrong (image view size is small)
Correct (image view size is big enough)