• 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: Multi-threaded AppKit examples?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-threaded AppKit examples?


  • Subject: Re: Multi-threaded AppKit examples?
  • From: Nathan Day <email@hidden>
  • Date: Tue, 29 Jan 2002 02:03:33 +1030

You might be able to do something with NSApplication's postEvent:atStart:, I haven't looked at it myself yet, I don't known enough about how event work yet.

On Monday, January 28, 2002, at 11:05 PM, Fraser Speirs wrote:

Hi,

I'm working on a cocoa app where we periodically request data from another application (specifically, the current song in iTunes) via Applescript. The way we do it is by invoking /usr/bin/osascript via NSTask. This is slow and at the moment we do it in the UI thread, leading to barely-acceptable responsiveness to the user.

I understand that I should use Distributed Objects to communicate between the threads, but I'm kind of stuck with actually passing data back and forth. It's just an NSString I want to return to the AppKit thread to fill in a text field. I've looked at the examples on developer.apple.com.

If anyone has an example of computing a result in another thread and returning it to the AppKit thread, I'd *love* to get a look at it.


References: 
 >Multi-threaded AppKit examples? (From: Fraser Speirs <email@hidden>)

  • Prev by Date: Re: Daemons!
  • Next by Date: NSCalendarDate and locale
  • Previous by thread: Re: Multi-threaded AppKit examples?
  • Next by thread: Re: Multi-threaded AppKit examples?
  • Index(es):
    • Date
    • Thread