I have an array of objects that have QTTime structs as attributes. The objects are in an NSArrayController which is bound to an NSTableView. I have a QTMovieView set up as an IBOutlet. I want to have it such that when an item in the NSTableView is selected the QTMovieView's cursor is moved to the time indicated in the selected objects QTTime attribute. Is there a method that will allow me to move the current time point of a QTMovie to a QTTime?
我有一个对象数组,其中包含QTTime结构作为属性。对象位于NSArrayController中,该控件绑定到NSTableView。我将QTMovieView设置为IBOutlet。我希望这样,当选择NSTableView中的项目时,QTMovieView的光标将移动到所选对象QTTime属性中指示的时间。有没有一种方法可以让我将QTMovie的当前时间点移动到QTTime?
1 个解决方案
#1
Have you tried setCurrentTime:?
你试过setCurrentTime:?