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

Re: NSRunLoop run semantics


  • Subject: Re: NSRunLoop run semantics
  • From: Bill Bumgarner <email@hidden>
  • Date: Sun, 07 Sep 2008 19:30:16 -0700

On Sep 7, 2008, at 9:33 AM, Roman Kishchenko wrote:
Yet, in my thread example below, the 'run' invocation blocks and does not
exit. MyThread is a simple NSThread subclass. No custom input sources or
timers are registered with the run loop. Unless I misunderstand the
documentation or there are some 'hidden' input sources or timers are
registered with the run loop, I would expect 'run' to exist immediately.
Would much appreciate help with sorting this out!
...
   [loop run];
...

The documentation for -run says:

If you want the run loop to terminate, you shouldn't use this method. Instead, use one of the other run methods and also check other arbitrary conditions of your own, in a loop. A simple example would be:


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >NSRunLoop run semantics (From: "Roman Kishchenko" <email@hidden>)

  • Prev by Date: Re: How did I miss this?
  • Next by Date: Re: How to create a GUID?
  • Previous by thread: NSRunLoop run semantics
  • Next by thread: Re: NSRunLoop run semantics
  • Index(es):
    • Date
    • Thread