Questions about NSThread, NSRunloop, Webview
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