I have a Class (File's Owner) that has an instance of a QTMovieViewer subclass (movieViewer) and a QTMovie (movie). QTMovieViewer is an IBOutlet, QTMovie is not.

Within IB I set up a binding for movieViewer using KVC to movie. How can I access movie from movieViewer in code?

I have thought about adding an Object to IB to represent the QTMovie, but the problem is this is not an IBOutlet and is created in code from File's Owner.

Thank you.

有帮助吗?

解决方案

Why do you want to use the movie view as your starting point for finding the movie? Why not start from the controller which is acting as the owner of that NIB?

Anyway, QTMovieView (no "er") has a movie property which probably reflects whatever movie the movie binding was bound to.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top