advertisement

Article:
  Building a Scratch Pad with Cocoa
Subject:   Good Clear Articles
Date:   2001-12-29 10:10:25
From:   mahongue
These articles are a great complement to the Learning Cocoa book. I especially liked the last three on graphics, as that is what I will use the most. I have almost got my Mandelbrot set drawn.


My question is how to plot individual points into a view. I could define a rect using NSMakeRect as (x,y,x+1,y+1), and color in that pixel, but this seems to be a lot of extra code just to plot an NSPoint. Is there a command that takes an NSPoint and draws it in the default color?


Thank you for any help.


Alexander