Re: Movie Files
Re: Movie Files
- Subject: Re: Movie Files
- From: Finlay Dobbie <email@hidden>
- Date: Thu, 3 Jan 2002 21:36:05 +0000
On Thursday, January 3, 2002, at 08:09 pm, Owen Andertson wrote:
OK, this sounds like a stupid question but here goes: I have a
quicktime file that I have loaded into Project Builder. How do I
access that file in code so I can set it as the movie for an
NSMovieView? Thanks,
"loaded into Project Builder"? what do you mean?
I presume you mean that you have it in the Resources directory and it is
installed into your application bundle when you compile it. If this is
the case, have a look at the NSBundle documentation, specifically
pathForResource. You can then turn that into an NSURL, which you can use
to create an NSMovie, which you can then use as an argument to your
NSMovieView's setMovie: method. Of course, there may be a simpler way
via IB, I'm just going on the headers and I don't claim to be
experienced with movies in Cocoa.
-- Finlay
References: | |
| >Movie Files (From: Owen Andertson <email@hidden>) |