Re: NSThread Subclassing problem for Singleton instance
Re: NSThread Subclassing problem for Singleton instance
- Subject: Re: NSThread Subclassing problem for Singleton instance
- From: Kyle Sluder <email@hidden>
- Date: Mon, 12 Jul 2010 12:36:25 -0700
On Mon, Jul 12, 2010 at 12:33 PM, Abhinav Tyagi <email@hidden> wrote:
> Thanks for giving your valuable time to this post.
> I have been working on Mac platform since last 5 months prior to which I have
> worked on Windows platform.
> I have used threads using NSThread's
> detachNewThreadSelector:@selector() earlier
> and they worked fine. However this time my thread is not like a simple
> function that will
> quit after it is finished. But my thread needs to be running as teh
> data continuously comes
> from the URL connection.
NSURLConnection already has an asynchronous API. Use that instead of
detaching your own thread.
--Kyle sluder
_______________________________________________
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