NSBezierPath tutorial

Discussion in 'Mac Programming' started by Macman1993, Nov 10, 2010.

  1. Macman1993 macrumors 6502


    Nov 23, 2007
    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).
  2. lloyddean macrumors 6502a

    May 10, 2009
    Des Moines, WA
    A bit dated, as it is based around earlier versions of Xcode and Interface Builder, but the code of the example is still valid.


Share This Page