Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions about NSThread, NSRunloop, Webview




On 19 feb 2006, at 21.46, Stefan Heukamp wrote:

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.

How do you determine in which tread you get your callback?

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?

Have you checked the documentation:

<http://developer.apple.com/documentation/Cocoa/Conceptual/ Multithreading/articles/CocoaDetaching.html>

Search for "Configuring Your Run Loop"

Finally, since it seems that you're using Cocoa functionality that already has an asynchronous interface via it's own threading, are you sure that you need to manage your own threads?

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Questions about NSThread, NSRunloop, Webview (From: Stefan Heukamp <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.