So, I'm curious if anyone has tinkered around much with the QTKit.
My problem set is actually pretty simple. Just a movie viewer. A window, with a QTMovieView.
The project is a Cocoa Application, not a Document-based project, though.
I have added the QTKit.framework to my project & set up the UI in IB. The UI has one QTMovieView & a button titled "Play".
I've set up the outlets & actions, etc correctly [I believe]. For now, I've hard-coded the path/filename into the program. When I click the play button, though, the movie doesn't play.
Since I couldn't get it to work, I thought I'd [*gasp*] check out the documentation for the QTKit, QTMovieView and QTMovie. I followed one of the tutorials. The first thing that stood out in the tutorial was that I created a document-based project & added the view to the MyDocument.nib's Window.
I did just add an NSLog line in the code that is connected to the play button, because I wasn't convinced that the function was even being called. When I built & ran the project & clicked the button, the NSLog message was output to the console. So, it is being called.
One half of my brain thinks it makes a little bit of sense that it works this way but not the other way, since movies are documents. But the other half of my brain is stubborn & thinking that they're both just windows with views on them and my code should work. Alas, it does not.
If code would help, I can post it. If I do that, though, please keep in mind that I really just whipped out the code for the app as a learning exercise, not for a class, or work project. I was just curious to see if anyone else had any thoughts as to why this might be happening.
My problem set is actually pretty simple. Just a movie viewer. A window, with a QTMovieView.
The project is a Cocoa Application, not a Document-based project, though.
I have added the QTKit.framework to my project & set up the UI in IB. The UI has one QTMovieView & a button titled "Play".
I've set up the outlets & actions, etc correctly [I believe]. For now, I've hard-coded the path/filename into the program. When I click the play button, though, the movie doesn't play.
Since I couldn't get it to work, I thought I'd [*gasp*] check out the documentation for the QTKit, QTMovieView and QTMovie. I followed one of the tutorials. The first thing that stood out in the tutorial was that I created a document-based project & added the view to the MyDocument.nib's Window.
I did just add an NSLog line in the code that is connected to the play button, because I wasn't convinced that the function was even being called. When I built & ran the project & clicked the button, the NSLog message was output to the console. So, it is being called.
One half of my brain thinks it makes a little bit of sense that it works this way but not the other way, since movies are documents. But the other half of my brain is stubborn & thinking that they're both just windows with views on them and my code should work. Alas, it does not.
If code would help, I can post it. If I do that, though, please keep in mind that I really just whipped out the code for the app as a learning exercise, not for a class, or work project. I was just curious to see if anyone else had any thoughts as to why this might be happening.