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

NSMovieView — Mac OS X 10.0

Synopsis

This class provides a means to display an NSMovie in an Cocoa view. NSMovieView has provisions to display in the view controls to control playback and editing of the represented movie. Additionally, action methods declared in the interface allow you to build custom interfaces for controlling movie playback and editing.

image with no caption

@interface NSMovieView : NSView
                                  // Accessor Methods
   - (void)setMuted:(BOOL)mute;
   - (void)setRate:(float)rate;
   - (float)rate;
   - (void)setLoopMode:(NSQTMovieLoopMode)mode;
   - (NSQTMovieLoopMode)loopMode;
   - (void)setVolume:(float)volume;
   - (float)volume;
   - (void)setPlaysEveryFrame:(BOOL)flag;
   - (BOOL)playsEveryFrame;
   - (void)setPlaysSelectionOnly:(BOOL)flag;
   - (BOOL)playsSelectionOnly;
   - (void)setEditable:(BOOL)editable;
                                  // Instance Methods
   - (void)cut:(id)sender;
   - (void)clear:(id)sender;
   - (void)gotoBeginning:(id)sender;
   - (NSMovie*)movie;
   - (void* /*MovieController*/)movieController;
   - (NSRect)movieRect;
   - (void)setMovie:(NSMovie*)movie;
   - (void)copy:(id)sender;
   - (void)gotoEnd:(id)sender;
   - (void)gotoPosterFrame:(id)sender;
   - (BOOL)isControllerVisible;
   - (BOOL)isEditable;
   - (BOOL)isMuted;
   - (BOOL)isPlaying;
   - (void)paste:(id)sender;
   - (void)resizeWithMagnification:(float)magnification;
   - (void)selectAll:(id)sender;
   - (void)showController:(BOOL)show 
                                 adjustingSize ...

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