"Async" Service return values?
"Async" Service return values?
- Subject: "Async" Service return values?
- From: Evan Gross <email@hidden>
- Date: Fri, 31 Aug 2001 00:41:49 -0400
Thanks to those that responded to my question about Dynamic Services. I
*think* I have a pretty good idea how to do what I want now (haven't
actually tried it yet).
So here's yet another Service-related question:
Is there any way for a Service provider to return a value to the requestor
in some sort of "async" manner?
The idea is that my service would display a window (NOT modal), the user
would select some text in this window, click a "Replace" button, and have
that selected text be what is returned to the requestor. Note that it's also
possible for the user NOT to perform any sort of replacement as well. I
don't want it to be mandatory.
I'm guessing that this implies that the method that implements my service
can't just open this window and return.
The only thing I can think of is some sort of mucking with NSRunLoop and
friends. But I thought I'd ask first to see if this is even doable...
I realize there are likely time-out issues involved as well (not exactly
sure what, but I'm sure someone out there can enlighten me).
Is this at all possible? Or is it stretching the Service behavior a little
too much?
Thanks,
Evan Gross
Rainmaker Research Inc.