PDA

View Full Version : NSBezierPath tutorial




Macman1993
Nov 10, 2010, 10:52 PM
I've been trying to learn to draw simple shapes in Objective-c (I'm new to the language) and I am having trouble figuring it out. I just want some sample code to explain the barebones basics of drawing simple shapes (rectangles and oval's). I've found some source code from apple which I'm sure would be helpful if I understood the basics but they have so many other things going on at once that I have no idea what is necessary for drawing shapes. Can someone please point me to a simple tutorial for drawing simple shapes using the NSBezierPath class (or using something else if NSBezierPath isn't what I need).



lloyddean
Nov 11, 2010, 12:12 AM
A bit dated, as it is based around earlier versions of Xcode and Interface Builder, but the code of the example is still valid.

<http://cocoadevcentral.com/d/intro_to_quartz_two/>