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

Extending the QT<strong>Kit</strong>Player To Stream Audio and Video<br />

Each task is outlined, step by step, in the next sections of this chapter. You’ll start as you have before<br />

with Interface Builder and then move on to add the code you need in four separate Xcode files.<br />

Constructing the Open URL Panel<br />

By now you should be familiar with how to work with Interface Builder and its various palettes,<br />

icons, and objects. For purposes of simplicity and to move things forward a bit faster, this means<br />

combining a few basic steps in constructing your Open URL Panel. To start:<br />

1. Create a new nib and call it OpenURLPanel.nib.<br />

2. Create an Open URL panel object with Cancel and OK buttons, which are positioned according<br />

to Human Interface <strong>Guide</strong>lines, as shown in Figure 5-3.<br />

3. Create a ComboBox object from the Cocoa-Data palette, where the user can enter a movie URL,<br />

as also shown in Figure 5-3.<br />

Figure 5-3 The Open URL panel nib and dialog for entry of a movie URL<br />

Constructing the Open URL Panel 81<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!