Process events in a QuickTime export callback
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