• 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: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

References: 
 >Multithreaded Cocoa Document Application? (From: "Rick Ekle" <email@hidden>)
 >Re: Multithreaded Cocoa Document Application? (From: Andrew Merenbach <email@hidden>)
 >Re: 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: CGContextSetStyle console log error?
  • Previous by thread: Re: Multithreaded Cocoa Document Application?
  • Next by thread: Re: Multithreaded Cocoa Document Application?
  • Index(es):
    • Date
    • Thread