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

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
References: 
 >Process events in a QuickTime export callback (From: Trygve Inda <email@hidden>)

  • Prev by Date: Another user defaults question
  • Next by Date: Re: Another user defaults question
  • Previous by thread: Process events in a QuickTime export callback
  • Next by thread: Re: Process events in a QuickTime export callback
  • Index(es):
    • Date
    • Thread