views:

18

answers:

1

In Objective-C, how do I draw a 2D shape similar to the one pictured here? (sorry could not embed image). Thanks! -appleHap

A: 

Cocoa has a number of primitives for 2D drawing. You'll want to check out the Cocoa Drawing Guide, specifically the section on paths, which will detail the use of NSBezierPath to draw such shapes.

mipadi