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:47:59 -0700
On 8/23/07, Andrew Merenbach <email@hidden> wrote:
> Hi, Rick,
>
> Shawn corrected me, as I was right only in my narrow mindset: you
> cannot actually *open* a document in a separate thread; Cocoa handles
> is in its own way.
>
> You can, however--as Shawn pointed out--open the documents normally,
> then start a thread from *within* each document. That should do the
> trick.
>
> As for communication, your best bet is probably
> NSDistributedNotifications.
He may get away with using simply using -[NSObject
performSelectorOnMainThread:withObject:waitUntilDone:] but again it is
hard to answer in the abstract given the large number of options
available (both via Cocoa and otherwise).
-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