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

Adding Multimedia Playback Capability<br />

Figure 6-16 The class model in Xcode 2.0 of the ViewTestsController class<br />

Adding Code To Your ViewTestsController Class Interface<br />

In this next sequence of steps, you’ll be adding a small amount of code to your<br />

ViewTestsController.h class interface file.<br />

To begin, in your QT<strong>Kit</strong>Player project, choose File > New File. In the Assistant window for your new<br />

file in Xcode 2.0, select Cocoa > Objective-C class and in the window that opens enter the title<br />

ViewTestsController.h . Now follow these steps:<br />

1. Insert the following import code at the beginning of your file:<br />

#import <br />

#import <br />

2. Add this line of code:<br />

@class QTMovieView;<br />

3. Add the following block of code declaring the instance variables that belong to your<br />

ViewTestsController class:<br />

@interface ViewTestsController : NSObject<br />

{<br />

IBOutlet NSWindow *mViewTestsWindow;<br />

IBOutlet QTMovieView *mSplitViewMovieView1;<br />

IBOutlet QTMovieView *mSplitViewMovieView2;<br />

IBOutlet QTMovieView *mSplitViewMovieView3;<br />

IBOutlet QTMovieView *mTabViewMovieView1;<br />

IBOutlet QTMovieView *mTabViewMovieView2;<br />

IBOutlet QTMovieView *mScrollViewMovieView;<br />

Adding Code To Display and Playback Multimedia 113<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!