For an application that I am developing I need to create a grid of squares. The only relevant property they should have is the ability to change to any color (RGB).
1) What kind of object should I use? Custom?
2) Am I overlooking something? Should I, for instance, be using Core Animation?
Thanks in advance.
It really depends on the size of your grid, but for something small (up to a few dozen squares not changing more than a few times a second, say) or prototyping, you can use
NSBox. In IB, set Box Type to Custom and Border Type to None. You can then set thefillColorattribute as desired. (Mac OS X 10.5 or later)