On 30/05/2013, at 11:49 PM, Steve Mills <[email protected]> wrote:
> Is there some better way to give the current event loop time so I can have
> the drawing and canceling done right in my mouseUp handler?
Have you looked at -nextEventMatchingMask:untilDate:inMode:dequeue:? As in:
NSEvent *event;
while ((event = [NSApp nextEventMatchingMask:NSAnyEventMask
untilDate:nil inMode:NSDefaultRunLoopMode dequeue:YES]))
{
[NSApp sendEvent: event];
event = nil;
}
--
Shane Stanley <[email protected]>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]