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

Re: Blocking loops


  • Subject: Re: Blocking loops
  • From: Bill Bumgarner <email@hidden>
  • Date: Fri, 16 Jun 2006 09:05:09 -0700

On Jun 16, 2006, at 7:34 AM, Andreas Känner wrote:
Maybe that's not the best approach but the equivalent to DoEvents() is this:

[NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantFuture] inMode:NSDefaultRunLoopMode dequeue:NO];

Don't do that. Or, at least, don't do that and expect anything like normal event processing or responsiveness to happen in your app.


From the documentation:
Returns the next event matching a given mask, or nil if no such event is found before a specified expiration date.


http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html


_______________________________________________ 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: 
 >Blocking loops (From: email@hidden)
 >Re: Blocking loops (From: Shawn Erickson <email@hidden>)
 >Re: Blocking loops (From: Andreas Känner <email@hidden>)

  • Prev by Date: Re: Apple's Secret Desktop Sauce
  • Next by Date: Re: Text Capture in Cocoa
  • Previous by thread: Re: Blocking loops
  • Next by thread: Re: Blocking loops
  • Index(es):
    • Date
    • Thread