NSImageView color

Joined
Feb 9, 2011
Messages
2
Reaction score
0
Points
1
So, while working on a project, I made a window with two NSImageViews on it, one which covers the whole window, and another on top of that. I wanted to load an image into each of the views. The first view loads its image fine (using setImage:NSImage) but when I attempted to do the same with the second view, the image came out as greyscale, even though the original image is in color.

Both images are .png, and are included in the package. When viewed in XCode or in other programs, they both have color. Only when it gets loaded does the image lose color.

Anyone have any idea what could be going wrong?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top