Re: NSMovie
Re: NSMovie
- Subject: Re: NSMovie
- From: Henri Lamiraux <email@hidden>
- Date: Wed, 11 Jul 2001 10:06:57 -0700
Take a look at the following sample codes
http://developer.apple.com/samplecode/Sample_Code/Cocoa/SimpleCocoaMovie.htm
and
http://developer.apple.com/samplecode/Sample_Code/Cocoa/bMoviePalette.htm
The second one (bMoviePalette) might be a little more complex than what
you want (this is a sample for creating an iMovie like palette in IB).
On Wednesday, July 11, 2001, at 01:22 AM, Hisaoki Nishida wrote:
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
}
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
References: | |
| >NSMovie (From: Hisaoki Nishida <email@hidden>) |