• 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
Re: Multithreaded Cocoa Document Application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Multithreaded Cocoa Document Application? (From: "Rick Ekle" <email@hidden>)
 >Re: Multithreaded Cocoa Document Application? (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: Multithreaded Cocoa Document Application?
  • Next by Date: Re: Multithreaded Cocoa Document Application?
  • Previous by thread: Re: Multithreaded Cocoa Document Application?
  • Next by thread: Re: Multithreaded Cocoa Document Application?
  • Index(es):
    • Date
    • Thread