NSMovie
NSMovie
- Subject: NSMovie
- From: Hisaoki Nishida <email@hidden>
- Date: Wed, 11 Jul 2001 04:22:01 -0400
Would anyone be kind enough to help me write code that would play an
NSMovie?
I'm ashamed to ask, but I read the NSMovie / NSMovieView class
descriptions in the documentation, thought I understood it, but sadly
the code wouldn't work. It's most likely a series of very stupid
mistakes, but I don't know what's wrong.
Basically what I did was this:
- (IBAction)playMovie:(id)sender
{
NSString *URLString;
NSURL *URL;
URLString = @"~/Desktop/Movie/movie.mov";
URL = [URL initWithString:URLString];
[movie initWithURL:URL byReference:NO];
[myMovieView setMovie:movie];
[myMovieView start]; // myMovieView is a subclass of NSMovieView.
The compiler said // myMovieView doesn't respond to
start
}