Re: Question on threads running in my Foundation tool
Re: Question on threads running in my Foundation tool
- Subject: Re: Question on threads running in my Foundation tool
- From: "Charles E. Heizer" <email@hidden>
- Date: Fri, 20 Feb 2009 11:15:19 -0800
Since this app is a bit of a scheduler for the tasks it could be
running for a while, so for my testing I implemented a while loop to
keep it running.
BOOL isRunning = YES;
while(isRunning)
{
sleep(10);
}
Thanks for the help!
- Charles
On Feb 20, 2009, at 11:02 AM, Nick Zitzmann wrote:
On Feb 20, 2009, at 11:55 AM, Charles E. Heizer wrote:
Ok, so I have the NSURLRequest in my main method ( included snippet
of my code ) so what your saying is if I delegate the NSURLRequest
to a NSRunLoop it will clean it's self up?
You don't appear to have any run loop running in your code. Just
creating and running a run loop at some point ought to clear up the
threads left over by NSTask and NSURLWhatever.
I wouldn't worry too much about them, though, unless you're creating
an insane amount (e.g. thousands) of tasks or requests.
Nick Zitzmann
<http:// www. chronosnet.com/>
_______________________________________________
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