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 Feb 19, 2006, at 2:46 PM, Stefan Heukamp wrote:

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.

You're probably going to have problems from this step, regardless of other issues, since doing things like creating a UI needs to be done on the main thread...


(It's unclear if, even if created on the main thread, that you can send loadRequest on a secondary thread either)

Glenn Andreas                      email@hidden
 <http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets

_______________________________________________
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.