Mac OS Cocoa: Draw a simple pixel on a canvas
问题 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 a pixel (actually a few pixels) onto a dedicated area on my application window. I figured, it would be nicer to have a NSImageView placed there (I did so with IB and connected the outlet to my app delegate) and draw on that instead of my NSWindow . How in the world can I do that? Mac OS seems to offer NSBezierPath as the most