Services, Threads and User Interface
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.