• 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: Questions about multithreading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions about multithreading


  • Subject: Re: Questions about multithreading
  • From: email@hidden (mikevannorsdel)
  • Date: Wed, 10 Oct 2001 23:45:07 -0600

Just use [myConnection runInNewThread]. It will break the connection's work off in its own thread. Make sure and use autoreleasepools.


On Wednesday, October 10, 2001, at 11:22 PM, Gvran Granstrvm wrote:

I need to get my NSConnection multithreaded because it freezes my app when it takes a long time to receive or send data or when it tries to connect. I have been playing round with NSConnection and NSThread a lot but I just can't get it to work, there is no example or documentation on this what I have seen, so I really really need some help. I think apple should make more examples on Cocoa because examples is somehow the best way to learn new special things. A chat-app example show how to send and receive data trough a remote connection in multithreading mode would be perfect !


References: 
 >Questions about multithreading (From: Göran Granström <email@hidden>)

  • Prev by Date: Questions about multithreading
  • Next by Date: Re: Audio programming with Cocoa?
  • Previous by thread: Questions about multithreading
  • Next by thread: Re: Questions about multithreading
  • Index(es):
    • Date
    • Thread