Challenge: A Drawing App

Create a new document-based application that allows the user to draw ovals in arbitrary locations and sizes. NSBezierPath has the following initializer:

 ​ ​ ​ ​i​n​i​t​(​o​v​a​l​I​n​R​e​c​t​:​ ​N​S​R​e​c​t​)​ ​-​>​ ​N​S​B​e​z​i​e​r​P​a​t​h​

If you are feeling ambitious, add the ability to save and read files.

If you are feeling extra ambitious, add undo capabilities.

Get Cocoa Programming for OS X: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.