• 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
Services, Threads and User Interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Services, Threads and User Interface


  • Subject: Services, Threads and User Interface
  • From: Diggory Laycock <email@hidden>
  • Date: Tue, 12 Aug 2003 17:11:49 +0100

Hi,

I am writing a simple app whose main function is to provide a System Service.

However I'd like the user to be able to customise the behaviour of the service through some UI (specifically a sheet).

This is a bit tricky because the whole cycle of accepting the service request, doing the processing on the incoming data, then writing the changed data out to the pasteboard must all take place within one method.

This means that while the service cycle is going my only thread is busy - I have to put it into a loop because if I leave the method the service is over.

But this means that cocoa's nice target/action UI stuff stops working.

Is it possible to set-up a second thread that would deal with the UI while the main thread is locked-up? Or is that a big no-no?

thanks,


Diggory Laycock
-----------------------
http://www.monkeyfood.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Services, Threads and User Interface
      • From: "Alastair J.Houghton" <email@hidden>
  • Prev by Date: "nil or empty path argument problem"
  • Next by Date: Examples of creating custom controls
  • Previous by thread: "nil or empty path argument problem"
  • Next by thread: Re: Services, Threads and User Interface
  • Index(es):
    • Date
    • Thread