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 4<br />

Adding New Capabilities to the QT<strong>Kit</strong>Player Application<br />

15. Add NSTextField objects corresponding to “Current Time,” “Duration,” “Normal Size,” “Current<br />

Size,” and “Source” (all static text), as shown in Figure 4-10. In the attributes pane of each text<br />

field, specify the title, color, alignment, text border, and other information.<br />

Figure 4-10 Text fields and their attributes added to the Drawer Content View<br />

16. You want to be sure that you specify in the NSTextfield Info panes for Current Time and Duration<br />

by entering the Title attribute as 00:00:00:00, as shown in Figure 4-10.<br />

17. Now add the outlets to your document subclass. Double-click the File’s Owner icon. This brings<br />

up the Info window attributes pane for the MovieDocument class. Use the Add button and add<br />

the following outlets: mCurrentSize, mDuration, mNormalSize, mSourceSize, and mTimeDisplay.<br />

70 Adding a Cocoa Drawer to the QT<strong>Kit</strong>Player<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!