I programmed for a while, but recently decided to start development for Mac OS X. I feel like I came across the basics of Objective-C and Cocoa development last week. I plan to create graphical applications, and so I am currently studying how to manage quartz compositions using the Cocoa application. I looked at a tutorial that an apple offers (with Mac Engravings) and was able to create this just fine. To make sure that I really understood what I learned, I decided to create my own composition and associate it with a slightly more complex Cocoa application.
Essentially, I have a composition that loads a movie or image through the Movie Loader patch, and at that moment it applies various filters to the frames before it comes out. In my Cocoa application, I wrote code (or rather copied and pasted from other Apple examples) that allows the user to select a file using the NSOpenPanel object. The path to the file they select is placed in the text box that I placed in the application window using Interface Builder. I linked the value of the specified text field to the "Movie_Location" key in my composition, which is the published input in the Movie Loader patch that I am using. However, no matter what I do, movies and images are not loaded into this composition no matter what I try. The only thing that appears isthis is the default image that I saved in this input from Quartz Composer (or nothing if I left it blank before posting).
I added the Clear Color patch to the composition and attached it to colorwell in my user interface, and it successfully changes color on my display, so I know that the connection and my Cocoa application are communicating. At that moment, I spent many hours trying to understand what was happening, and I just gave up. Does the movie downloader have any weird behaviors that I don’t know about, or is there something obvious that I seem to be missing? I would really appreciate any help or advice from anyone.
Thanks for reading this ...
Best, Sami
source
share