Re: Stacking run loops
Re: Stacking run loops
- Subject: Re: Stacking run loops
- From: Ricky Sharp <email@hidden>
- Date: Thu, 16 Dec 2004 07:45:10 -0600
On Thursday, December 16, 2004, at 07:39AM, Ricky Sharp <email@hidden> wrote:
>
>Ultimately, I decided to do things manually with my own local event loop:
>
> modalLoopDone = NO; // iVar
>
> do
> {
> NSAutoreleasePool* thePool = [[NSAutoreleasePool alloc] init];
> NSEvent* theEvent = [NSApp nextEventMatchingMask:NSAnyEventMask
> untilDate:[NSDate distantPast] inMode:NSEventTrackingRunLoopMode dequeue:YES];
typo...inMode is actually set to NSDefaultRunLoopMode
>
> [NSApp sendEvent:theEvent];
>
> [thePool release];
> }
> while (!modalLoopDone);
_______________________________________________
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