Skip to content

Instantly share code, notes, and snippets.

@samchandra
Created October 8, 2010 06:53
Show Gist options
  • Save samchandra/616452 to your computer and use it in GitHub Desktop.
Save samchandra/616452 to your computer and use it in GitHub Desktop.
// Using NSNotificationCenter to add self as an observer for the
// MPMoviePlayerPlaybackDidFinishNotification message when we finish
// playing a movie
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(myMovieFinishedCallback)
name:MPMoviePlayerPlaybackDidFinishNotification
object:theMovie];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment