• 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: Stacking run loops
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Stacking run loops
      • From: Ricky Sharp <email@hidden>
References: 
 >Re: Stacking run loops (From: patrick machielse <email@hidden>)
 >Re: Stacking run loops (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Stacking run loops
  • Next by Date: Re: Copying a reference of an object
  • Previous by thread: Re: Stacking run loops
  • Next by thread: Re: Stacking run loops
  • Index(es):
    • Date
    • Thread