Re: External kill of an NSThread?
Re: External kill of an NSThread?
- Subject: Re: External kill of an NSThread?
- From: Roland Torres <email@hidden>
- Date: Tue, 21 Nov 2006 14:13:07 -0800
On Nov 21, 2006, at 12:38 PM, Murat Konar wrote:
On Nov 21, 2006, at 12:11 PM, Roland Torres wrote:
My code makes a call to a 3rd party library (not mine) that issues
an NSData dataWithContentsOfURL: call. It's this call that hangs
the show if it can't reach the URL specified. So I thought I might
invoke it in its own thread and kill it if it hangs. Is there a
better way, without mucking with the 3rd party library?
Check the URL for reachability before attempting to reach it?
Search the archives for "SCNetworkCheckReachabilityByName".
I did. SCNetworkConnectionFlags() tells me only that the IP portion
of the URL is valid; it doesn't verify that the URL itself is valid.
Is there some method or function I could use for this purpose?
Roland
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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