Re: Multithreaded Cocoa Document Application?
Re: Multithreaded Cocoa Document Application?
- Subject: Re: Multithreaded Cocoa Document Application?
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 23 Aug 2007 18:19:04 -0700
On 8/23/07, Andrew Merenbach <email@hidden> wrote:
> Unfortunately, your multi-document idea won't work with a subclass of
> NSDocument, as NSDocument is provided by AppKit and AppKit is not
> thread-safe.
Nothing about the Cocoa document architecture prevents the use of
threads to do processing. You only need to properly pass information
between those secondary threads and the main thread. How to do that
communication is potentially a BIG topic and hard to answer in the
abstract or via email.
I suggest the OP dig around conceptual documentation that covers this
type of issues as well as grab a book or two on the concept of
threading.
For example... <http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/index.html>
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden