• 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: NSThread Subclassing problem for Singleton instance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSThread Subclassing problem for Singleton instance (From: Abhinav Tyagi <email@hidden>)

  • Prev by Date: NSThread Subclassing problem for Singleton instance
  • Next by Date: Finding Application support folder without Cocoa or Carbon
  • Previous by thread: NSThread Subclassing problem for Singleton instance
  • Next by thread: Finding Application support folder without Cocoa or Carbon
  • Index(es):
    • Date
    • Thread