• 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
Questions about NSThread, NSRunloop, Webview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions about NSThread, NSRunloop, Webview


  • Subject: Questions about NSThread, NSRunloop, Webview
  • From: Stefan Heukamp <email@hidden>
  • Date: Sun, 19 Feb 2006 21:46:31 +0100

Hi,

recently I've got a few problems with NSThread, NSRunloop and Webview. In a part of my program I try to implement kind of a multithreaded frontend to the unix-tool wget.

Here's what I do:

1) I create a new Thread.
I assume a new NSRunLoop should be created automatically. Is that true?
2) In this Thread I create a WebView and send loadRequest to this Webview.
3) The Method with which I created the thread returns.
Is the NSThread Object deleted immediately?
What happens with the RunLoop?
4) When the download of the WebView is finished, I get the Callback downloadDidFinish but it seems to be called in the MainThread, so it is not executed parallel to the MainThread which I wanted.
I thought the callback would be executed by the RunLoop of the new created thread. Or has the RunLoop nothing to do with this at all.


You see, I'm relatively new to multithreading, especially with cocoa. Do you know a real good tutorial or something like that about Multithreading and RunLoops?

Thanks for your help in advance,

Stefan Heukamp

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Questions about NSThread, NSRunloop, Webview
      • From: glenn andreas <email@hidden>
    • Re: Questions about NSThread, NSRunloop, Webview
      • From: j o a r <email@hidden>
  • Prev by Date: Re: NSSearchField (configuring cancel action)
  • Next by Date: Re: Truncating a string with ellipses in a multi-line drawInRect: operation?
  • Previous by thread: Re: Truncating a string with ellipses in a multi-line drawInRect: operation?
  • Next by thread: Re: Questions about NSThread, NSRunloop, Webview
  • Index(es):
    • Date
    • Thread