Exercises

  1. Rework the DemoView class in Tiny.m so that the program draws a series of concentric squares or circles.

  2. Read the header files for /AppKit/NSColor.h and modify DemoView so that the drawing appears in many different colors.

  3. Read the header files for /AppKit/NSStringDrawing.h and add text to the DemoView display.

Get Building Cocoa Applications: A Step by Step 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.