O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSMovie — Mac OS X 10.0

Synopsis

This class provides an object-oriented wrapper for QuickTime movie data, which allows clients to easily load QuickTime movies into memory. The data represented by an NSMovie object can be any format supported by the QuickTime APIs, including video, sound, and still images. Clients can obtain a pointer to the QuickTime data by sending a QTMovie message to the NSMovie instance; this pointer is suitable for use with any of the QuickTime APIs.

image with no caption

@interface NSMovie : NSObject <NSCoding, NSCopying>
                                  // Class Methods
   + (BOOL)canInitWithPasteboard:(NSPasteboard*)pasteboard;
   + (NSArray*)movieUnfilteredFileTypes;
   + (NSArray*)movieUnfilteredPasteboardTypes;
                                  // Instance Methods
   - (id)initWithMovie:(void* /*Movie*/)movie;
   - (id)initWithPasteboard:(NSPasteboard*)pasteboard;
   - (id)initWithURL:(NSURL*)url 
                                 byReference:(BOOL)byRef;
   - (void*/*Movie*/)QTMovie;
   - (NSURL*)URL;
                                  // Methods Implementing NSCoding
   - (void)encodeWithCoder:(NSCoder *)aCoder;
   - (id)initWithCoder:(NSCoder *)aDecoder;
                                  // Methods Implementing NSCopying
   - (id)copyWithZone:(NSZone *)zone;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required