Reputation: 1820
How should I best approach drawing a scatter plot diagram in Cocoa?
Upvotes: 1
Views: 254
Reputation: 70753
You will probably want to create a custom subclass of NSView and override the drawRect:
method.
You can draw primitives using many of NSBezierPath's class methods such as bezierPathWithOvalInRect:
and strokeLineFromPoint:toPoint:
Upvotes: 3