On Wed, 13 Sep 2000, David Bovill wrote:
> Trying Metacard beta 2.3.2, and nice to see tow of my top wish list features
> in it - sound control for QuickTime and better resolving of URL's with the
> built in HTTP features. Thanks.
>
> > From: Scott Raney <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > Date: Mon, 11 Sep 2000 12:02:48 -0600 (MDT)
> > To: [EMAIL PROTECTED]
> > Subject: Re: client side http
> >
> > On Mon, 11 Sep 2000, Dave Cragg wrote:
> >
> > 2.3.2 already has one new feature that will make implementing such a
> > library much easier: a "wait for messages" command which allows event
> > dispatching within a handler. This is useful for building synchronous
> > function calls that still require some event dispatching (e.g., one
> > that does the equivalent of "get url http://somehost/somefile").
> >
>
> This sounds like something I've always wanted. Is there any documentation on
> this feature. I've downloaded 2.3.2 for the Mac and read the readme, but...
>
> What would be the best tactic now for doing something like background
> indexing of text fields? I have a complex indexing scheme which takes some
> time for each piece of text, I want to be able to index these in passes
> without interrupting the working environment.
>
> Can I use "wait for message" in some way to do this? I am guessing that
> while it is waiting other scripts can execute? Can I use this to effectively
> do:
>
> wait for message "notDoingAnythingTest"
> continueIndexingALittle
> wait for message "notDoingAnythingTest"
> continueIndexingALittleMore
You could do it this way, but using "send .. in" would make a lot more
sense. Note that "send .. in" messages are also only sent when there
aren't any OS-generated events in the queue, which means that
interactivity always has priority over these background tasks. You do
still have to exit from your "continueIndexingALittleMore" handler
after a short time (say, 200ms) periodically, though.
Regards,
Scott
********************************************************
Scott Raney [EMAIL PROTECTED] http://www.metacard.com
MetaCard: You know, there's an easier way to do that...
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.