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

NSMovie init


  • Subject: NSMovie init
  • From: Jeff Martirano <email@hidden>
  • Date: Fri, 9 May 2003 15:01:40 -0700

I'm having a bit of trouble creating an NSMovie pointer. It works fine when I init with an outside URL with "initWithURL:[NSURL URLWithString:@"http://someserver.com/movie.mov";] byReference:YES];"

or with a hard coded path to a local file:"initWithURL:[NSURL URLWithString:@"file:///path/to/directory/movie.mov"] byReference:YES];"

but I can't make it work when trying to play a movie that I will bundle with the application. I've copied the movie into the project and tried to reference it with "initWithURL:[NSURL URLWithString:@"file://movie.mov"] byReference:YES];" and other variations, but that doesn't seem to work.

For images, I typically use "[[NSImage alloc] initByReferencingFile:[[NSBundle bundleForClass:[self class]] pathForImageResource:@"image.png"]];" but NSMovie doesn't seem to have a comparable init method.

Any ideas? Danke in advance.

Jeff
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSMovie init
      • From: publiclook <email@hidden>
    • Re: NSMovie init
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Good programming advice
  • Next by Date: Re: Continuity -Cocoa is Awesome
  • Previous by thread: Re: Initialization order
  • Next by thread: Re: NSMovie init
  • Index(es):
    • Date
    • Thread