• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSMovie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: NSThread question - DO to make it sing
  • Next by Date: Re: Java Binaries?
  • Previous by thread: Re: NSMovie
  • Next by thread: setEditable:FALSE not firing? Or am I doing something I shouldn't?
  • Index(es):
    • Date
    • Thread