• 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
Process events in a QuickTime export callback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Process events in a QuickTime export callback


  • Subject: Process events in a QuickTime export callback
  • From: Trygve Inda <email@hidden>
  • Date: Thu, 24 Aug 2006 23:04:21 +0000
  • Thread-topic: Process events in a QuickTime export callback

Is there any Cocoa way to do the equivalent of this Carbon code?

while (ReceiveNextEvent (0, NULL, 0, true, &event) == noErr)
{
  SendEventToEventTarget (event, GetEventDispatcherTarget());
  ReleaseEvent(event);
}

This code is in a QuickTime export callback...Apple's sample uses:

event = [progressSheet nextEventMatchingMask:NSLeftMouseUpMask
untilDate:[NSDate distantPast] inMode:NSDefaultRunLoopMode dequeue:YES];

if (event && NSPointInRect([event locationInWindow], [progressCancel
frame]))
{
   [progressCancel performClick:self];
   shouldContinue = NO;
}

However this does not properly track the cancel button as t is just looking
for a mouseUp and then faking the button click.

Thoughts?

Trygve


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Process events in a QuickTime export callback
      • From: Uli Kusterer <email@hidden>
    • Re: Process events in a QuickTime export callback
      • From: "Michael Ash" <email@hidden>
    • Re: Process events in a QuickTime export callback
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: Non-ASCII NSTask arguments
  • Next by Date: Another user defaults question
  • Previous by thread: Re: Controlling participation in the keyView loop?
  • Next by thread: Re: Process events in a QuickTime export callback
  • Index(es):
    • Date
    • Thread