Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
QTKitSimpleDocument
Last Revision: | Version 1.1, 2005-08-01 Updated to produce a universal binary. No code changes were required. |
Build Requirements: | XCode 2.1, XCode 2.0 |
Runtime Requirements: | Mac OS X 10.4, or Mac OS X 10.3.9 and QuickTime 7.0 |
QTKitSimpleDocument shows how to build the simplest document-based Cocoa application that opens and displays QuickTime movies. This sample code has been updated to include a project that produces a universal binary. No code changes were required for it to run correctly on the Developer Transition Systems. In the Open panel, files with .mov extensions or 'MooV' file types are selectable. When the user selects a file, it opens in a document window. This sample does not resize the movie window to conform to the natural size of the movie. Notice that we use setAttribute:forKey to make the movie editable. The Edit menu items then work automagically to support basic movie editing. We do however need to override saveDocument: to save the edited movie.
Copyright © 2005 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2005-08-01