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

Multi-threaded AppKit examples?


  • Subject: Multi-threaded AppKit examples?
  • From: Fraser Speirs <email@hidden>
  • Date: Mon, 28 Jan 2002 12:35:31 +0000

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.

Thanks,
Fraser

--
Fraser Speirs
Department of Computing Science - University of Glasgow
Room G161, 17 Lillybank Gardens, Glasgow G12 8QQ

t: 0141 339 8855 ext.0917
e: email@hidden w: www.dcs.gla.ac.uk/~speirsfr


  • Follow-Ups:
    • Re: Multi-threaded AppKit examples?
      • From: Finlay Dobbie <email@hidden>
    • Re: Multi-threaded AppKit examples?
      • From: Nathan Day <email@hidden>
    • Re: Multi-threaded AppKit examples?
      • From: John Hörnkvist <email@hidden>
    • Re: Multi-threaded AppKit examples?
      • From: John Hörnkvist <email@hidden>
  • Prev by Date: Re: reestablishing IBOutlets from initWithCoder ?
  • Next by Date: Re: Adding Custom Objects to a NSMutableArray
  • Previous by thread: How can I get system idle time?
  • Next by thread: Re: Multi-threaded AppKit examples?
  • Index(es):
    • Date
    • Thread