I have a 2D array of RGB values (assume they are NSColor objects or raw RGB 3-tuples of Doubles), one for each "pixel" of an image I want to draw. To produce the data is expensive so I can't keep running that function often. The data shouldn't be changing at all unless I add a manual function to do so. How do I simply draw it in an NSView?
For such a simple question I am getting swamped by different answers on the internet that aren't quite doing what I want. I started learning how to do this years ago in Obj-C. I just need the more efficient way to move on with my project.
I guess I subclass NSView and assign the class to the view in IB. What now?