• 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
NSMovie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

}


  • Follow-Ups:
    • Re: NSMovie
      • From: Henri Lamiraux <email@hidden>
    • Re: NSMovie
      • From: Candide Kemmler <email@hidden>
  • Prev by Date: Are Cocoa Java Apps Compiled?
  • Next by Date: setEditable:FALSE not firing? Or am I doing something I shouldn't?
  • Previous by thread: Re: Are Cocoa Java Apps Compiled?
  • Next by thread: Re: NSMovie
  • Index(es):
    • Date
    • Thread