Re: Process events in a QuickTime export callback
Re: Process events in a QuickTime export callback
- Subject: Re: Process events in a QuickTime export callback
- From: John Stiles <email@hidden>
- Date: Thu, 24 Aug 2006 16:17:04 -0700
I don't know for sure if it will work or not, but have you
experimented with [[NSRunLoop currentRunLoop] runUntilDate:...]?
On Aug 24, 2006, at 4:04 PM, Trygve Inda wrote:
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:
40blizzard.com
This email sent to email@hidden
_______________________________________________
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