Now you’re ready to add your Start and Stop push buttons and wire them up in your MainMenu.nib window.
Control-drag each of the Start and Stop buttons from the window to the MyRecorderController object, as shown in Figure 2-14. Click the startRecording: method in the transparent Received Actions panel to connect the Start button, and likewise, the stopRecording: method in the Received Actions panel to connect the Stop button.
Now you’ll need to hook up the window and the MyRecorderController object as a delegate, shown in Figure 2-15. Control-drag a connection from the window to the MyRecorderController object and click the outlet, connecting the two objects.
To verify that you’ve correctly wired up your window object to your delegate object, select the Window and click the Window Connections Inspector icon, shown in Figure 2-16.
Verify that you’ve correctly wired up your outlets and received actions. Select the My Recorder Controller object and click the My Recorder Controller Connections Inspector icon, shown in Figure 2-17.
Check the My Recorder Controller Identity Inspector panel to confirm the class actions and class outlets, shown in Figure 2-18.
Click the MainMenu.nib file to verify that Interface Builder and Xcode have worked together to synchronize the actions and outlets you’ve specified. A small green light appears at the left bottom corner of the MainMenu.nib file next to MyRecorder.xcodeproj to confirm this synchronization, as shown in Figure 2-19.
Save your nib file.
Verify that your QTKit MyRecorder capture application appears as shown in Figure 2-20.
You’ve now completed your work in Interface Builder 3. In this next sequence of steps, you’ll return to your Xcode project, adding a few lines of code in both your declaration and implemention files to build and compile the QTKit capture player application.
Last updated: 2007-10-31