NSMovie init
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.