• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
QT and Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QT and Cocoa


  • Subject: QT and Cocoa
  • From: Lorenzo <email@hidden>
  • Date: Thu, 31 Jul 2003 17:13:32 +0200

Hi list,
I am studying a Cocoa sample about QuickTime
I saw how to define a callback when the movie reaches the end. Fine.
I modified the parameter callBackAtExtremes to callBackAtTimeJump (see below
the code sample) and I saw that the CallBack procedure has been called when
the user moved the current playing point. Good. Now I would like to call the
callback procedure when the user presses the button "Stop" and the button
"Play". Do you know how to do that? Thank you.

- (void)setupMoviePlayingCompleteCallback:(Movie)theMovie
callbackUPP:(QTCallBackUPP) callbackUPP
{
TimeBase tb = GetMovieTimeBase (theMovie);
OSErr err = noErr;

gQtCallBack = NewCallBack(tb, callBackAtExtremes);
if (gQtCallBack != NULL)
{
err = CallMeWhen (gQtCallBack,
callbackUPP,
NULL, /* refCon */
triggerAtStop, /* flags - call us when stopped */
NULL, /* param2 - don't care */
NULL); /* param3 - don't care */
}
}



Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Project Builder freeze when compiling one particular project
  • Next by Date: Re: Adding firewall rules at runtime...
  • Previous by thread: Re: Adding firewall rules at runtime...
  • Next by thread: Soap complextype parameter
  • Index(es):
    • Date
    • Thread