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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

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

1. Open Interface Builder by double-clicking MovieDocument.nib in your Xcode project window<br />

and select the blue <strong>QuickTime</strong> icon in the toolbar, as shown in Figure 3-6. Note that the <strong>QuickTime</strong><br />

icon in this palette looks like the one available in the Cocoa-GraphicsViews palette, but they are<br />

different. The one in the QT<strong>Kit</strong> palette gives you the QTMovieView object rather than an<br />

NSMovieView object. Be sure that you select the item in the Cocoa-QT<strong>Kit</strong> palette.<br />

Figure 3-6 The Cocoa-QT<strong>Kit</strong> palette<br />

2. Delete the text “Your document contents here” in the window object.<br />

3. Drag the <strong>QuickTime</strong> icon from the QT<strong>Kit</strong> palette to the bottom-left corner of the project window.<br />

4. You now have a <strong>QuickTime</strong> movie view object with a control bar in the bottom-left corner of the<br />

window. Drag the upper-right handle of the movie view object to the upper-right corner of the<br />

window, filling the entire window, so the movie view object with its control bar is visible, as<br />

shown in Figure 3-7.<br />

Figure 3-7 The <strong>QuickTime</strong> movie view object dragged to fill the entire contents of the window<br />

5. Click the <strong>QuickTime</strong> movie object in the window, then press Command-1 to open the<br />

QTMovieView Info window. The Attributes pane appears with the default fill color of black and<br />

the Show Controller item selected. Note that the field that lets you select a movie from a list of<br />

files by clicking the File button is initially blank. Don’t click the File button to open a <strong>QuickTime</strong><br />

movie that will be displayed in your window.<br />

6. Leave the Show Controller item selected.<br />

Creating the Extended QT<strong>Kit</strong>Player Project 35<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!