• 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
Cocoa idiom for time consuming tasks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa idiom for time consuming tasks


  • Subject: Cocoa idiom for time consuming tasks
  • From: Joe Chan <email@hidden>
  • Date: Sun, 3 Feb 2002 17:05:44 -0500

I have a question about Cocoa design idioms for implementing time consuming operations that can be paused or cancelled by the user. For example, search through a long document, etc. In the classic days, I often times just run a second event loop. Now I'm faced with choices like running it in a thread, using NSTimer, etc. What are some common ways of accomplishing something like it. I searched through the list archive, and it seems that threads are often used with DO for interthread communication. How expensive is a DO call, and what are things I should look out for?

-----------
Joe Chan
email@hidden
http://www.firstian.com


  • Prev by Date: RE: XML-RPC
  • Next by Date: Re: Simple TableView App (problem)
  • Previous by thread: NSDrawer open at startup
  • Next by thread: Re: Cocoa idiom for time consuming tasks
  • Index(es):
    • Date
    • Thread