i want to know how to play a movie in Cocoa application
Add a QTMovieView in one of your application's windows. Set the movie view's movie to an instance of QTMovie; see the description of setMovie: on that page for details.
setMovie: