• 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's limitDateForMode: returns nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSRunLoop's limitDateForMode: returns nil


  • Subject: Re: NSRunLoop's limitDateForMode: returns nil
  • From: Shawn Erickson <email@hidden>
  • Date: Wed, 5 Jan 2005 10:13:24 -0800


On Jan 5, 2005, at 10:04 AM, Mont Rothstein wrote:

I have a call

	[loop limitDateForMode:NSDefaultRunLoopMode]

that under certain circumstances returns nil. The docs say this will happen if there are no input sources, but not (that I can find) what would cause there to be no input sources.

This occurs in a child process forked off of a parent. The idea is that the parent restarts the child if it dies. The child is a server process talking to an http server.

Anyone have any ideas on what could cause there to be no input sources and therefore return nil from the above call?

Are any input sources being added to the run loop? You want to add such sources (directly or indirectly) before running the run loop.


Also you are talking about processes... do you mean threads instead? Just making sure I understand what you are talking about.

What is the child "process"? AppKit application, Cocoa tool, etc?

-Shawn

_______________________________________________
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: NSRunLoop's limitDateForMode: returns nil
      • From: Mont Rothstein <email@hidden>
References: 
 >NSRunLoop's limitDateForMode: returns nil (From: Mont Rothstein <email@hidden>)

  • Prev by Date: NSRunLoop's limitDateForMode: returns nil
  • Next by Date: bind:toObject:.. should set value in bindor?
  • Previous by thread: NSRunLoop's limitDateForMode: returns nil
  • Next by thread: Re: NSRunLoop's limitDateForMode: returns nil
  • Index(es):
    • Date
    • Thread