Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
As in Chapter 5, we’ll create a guitar tuner app. Our first version will be just a digital tuning fork, emitting reference tones on demand. Think of it as Hello World! for libpd.
In order to use libpd in an app, you need to import the libpd Xcode project into your project and wire it up so that the editor, compiler, and linker can find the necessary resources. Xcode 4.2 makes this initial setup rather hard, and it is frequently easier to copy a sample project and modify it for your purposes. Nevertheless, we’ll ignore the sample projects for now and build our guitar tuner app from scratch.
In Xcode, select File ? New ? New Project and ask the new project wizard to create the scaffolding of a Single View Application (Figure 6-3).