O'Reilly logo

Mac Application Development by Example Beginner's Guide by Robert Wiebe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – drawing the active strokes

We can now look back at our project and implement the program code needed to draw the strokes that are active. There are two classes that are included in the sample code project but that are not discussed in detail here. While they are not essential to understanding multi-touch it is recommended that we examine the code, for completeness. We will need the files that implement these classes included in our project so that our multi-touch paint program can run.

  1. In Xcode, examine the program code in the files named BTSPoint.h, BTSPoint.m, BTSStroke.h, and BTSStroke.m so that we are familiar with these two objects that will be used during the painting process to create colored strokes in our custom NSView ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required