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.
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. (so I can't do UI stuff.)
I'm a bit of a novice with threads, and after reading up on them I have noticed that you usually detach a new thread to run a method.
However the method that does my Service stuff is not called by me - it's called by NSApp (I think) so I don't get a chance to spin it off.
Does anyone know how I can get round this?