Problem: getting a DO's run loop to run while app is idle
Problem: getting a DO's run loop to run while app is idle
- Subject: Problem: getting a DO's run loop to run while app is idle
- From: John Clayton <email@hidden>
- Date: Thu, 07 Apr 2005 18:49:34 -0400
I'm doing [NSFileHandle readInBackground] in a distributed object. I
want it to keep reading even when the app is idle. In fact, I want the
initiating object in the main thread to keep reading/displaying the
information. But, when the app goes idle, it appears the notifications
from readInBackground: stop and until I wake the app back up, nothing
gets sent back to the main thread.
I've tried monkeying with the run loop in the DO's thread to no avail
and I can't seem to learn enough from the Run Loop docs to give me a
clue—or if I'm even barking up the right tree. I do see this when the
app goes idle:
[DEBUG] - TCSController.m:417 -[TCSController
applicationWillResignActive:] - applicationWillResignActive:
[DEBUG] - TCSConsoleServer.m:108 -[TCSConsoleServer
applicationDidResign:] - NSRunLoop.currentRunLoop.currentMode: (null)
Much obliged for any help you can offer,
John
------------------------------------------------------------------------
-----
http://www.fivesquaresoftware.com Mac Software.
------------------------------------------------------------------------
------
"It is the truth that frees, not your attempts to be free."
- J. Krishnamurti
_______________________________________________
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