02.04.2013 Views

QuickTime Kit Programming Guide - filibeto.org

QuickTime Kit Programming Guide - filibeto.org

QuickTime Kit Programming Guide - filibeto.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C H A P T E R 3<br />

Extending the QT<strong>Kit</strong>Player Application<br />

4. To add a label for the pop-up menu, drag a text field from the Cocoa-Text palette and position it<br />

to the left of the pop-up menu as shown in Figure 3-12. In the Attributes pane of the NSTextField<br />

Info window, type Export: in the Title field. In the Options section, deselect the Editable option<br />

and the Selectable option.<br />

Figure 3-12 The export view object with the NSTextField Info window displayed and various attributes<br />

specified<br />

5. Now you are ready to wire up the Export view object. Select the File’s Owner icon and press the<br />

Control key. You want to hook up the File’s Owner to the Export view object. Choose the outlet<br />

exportAccessoryView and click Connect to wire up the File’s Owner with the NSView object.<br />

Select the outlet exportTypePopUpButton and click Connect to wire up the File’s Owner with<br />

the NSPopUpButton object.<br />

Adding Outlets and Actions to The MovieView Object<br />

Now you want to add outlets and actions to the MovieView object.<br />

1. In the MovieDocument.nib window, double-click the File’s Owner icon. The MovieDocument<br />

Class Info window Attributes pane appears with four outlets selected and one deselected.<br />

Creating the Extended QT<strong>Kit</strong>Player Project 39<br />

2005-11-09 | © 2004, 2005 Apple Computer, Inc. All Rights Reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!