title: Draw a square on Mac OS X?
body: <p>I would like to draw a small square, which is 4x4 pixels. I would like to be able to adjust its color at runtime (not like a color well or anything, the user doesn't need to be able to). I had been doing this with an <code>NSImage</code>, but this uses up a lot of resources and I can't adjust, and making a different little color swatch in Photoshop to change it to for any new color is a huge pain, so it is no longer suitable. How can this be done on Mac OS X ?</p>