Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMovieView and QT callbacks



Hi, I've run into a bit of a problem using an NSMovieView and a QuickTime callback (called when the movie stops). Hopefully someone on the list with a little more QT experience than myself could give me a hand.

This first showed up in a more involved case, but I've boiled it down as much as I can and it basically goes like this:
I set up an NSMovieView in a window and load a movie for it. I start the movie and set up a callback so it gets called when the movie is over (by passing triggerAtStop to CallMeWhen()). The callback pretty much just restarts the movie (although it's done through another message that is sent using performSelector:withObject:afterDelay: because eventually I will need to be able to load a new movie before restarting play, and that didn't work to well when I tried to replace the currently playing movie from within the callback).

The problem is that sometimes the callback is never called. I've verified that it is set up (by going through the list of all callbacks). Even stranger, sometimes it will start playing again just by clicking in the window (actually that triggers the callback which restarts playback). So I'm currently assuming that the callback is always set up right, which makes me wonder why it doesn't always get called. Anyone got any insight here? If anyone wants to see the code, that's no problem, I just didn't want to send it to the whole list.

Thanks in advance,
Matt




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.