I wish I would find an answer for this. I have searched and searched and couldn\'t the right answer. Here is my situation:
In a Mac OS Cocoa Application, I want to draw
For drawing pixels as you describe, there's no need to create a path or resort to the Quartz 2D or OpenGL API.
See NSRectFill() and related functions like NSRectFillList() and NSRectFillUsingOperation().
If you're drawing a lot of individual pixels, NSRectFillList() is about as fast as you can do it without resorting to rolling your own image buffers.