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;

Get Cocoa in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.