So, I've recently started working in Xcode. I wanted to make a window with an image loaded in the background, with another smaller image on top of it, so I could move the top image around and see the rest of the bottom image.
My process was to use the setImage method of NSImageView to load each image into an NSImageView in my interface. Each image is of type .png, and is referenced through an NSImage object created using 'imageNamed
"string here"'.
Here's the problem: One image (the bottom one) loads fine, but the top image comes out in greyscale, rather than in color. This is odd because the images both have color, and both show up correctly in the xcode project window.
I can't figure out why this is happening - Does anyone have any suggestions, or even a guess? I get the feeling that I must be doing something wrong, or have accidentally messed something up, but I can't figure out what...
My process was to use the setImage method of NSImageView to load each image into an NSImageView in my interface. Each image is of type .png, and is referenced through an NSImage object created using 'imageNamed
Here's the problem: One image (the bottom one) loads fine, but the top image comes out in greyscale, rather than in color. This is odd because the images both have color, and both show up correctly in the xcode project window.
I can't figure out why this is happening - Does anyone have any suggestions, or even a guess? I get the feeling that I must be doing something wrong, or have accidentally messed something up, but I can't figure out what...