> Hi,
>
[quoted text clipped - 4 lines]
> no idea how to use it in this case. Any suggestions are appreciated.
> Thanks a lot.
Just return control back to the event loop and let your app continue to
run normally. The notification will then be delivered at the appropriate
time.
> Just return control back to the event loop and let your app continue
> to
> run normally. The notification will then be delivered at the
> appropriate
> time.
That's what I.m trying to do, but wierd it seems that the
notifications are late, while control is already at the loop's next
cicle.
* posted via http://www.mymac.ws
* please report abuse to http://xinbox.com/mymac
Tom Harrington - 29 Jun 2005 21:36 GMT
> > Just return control back to the event loop and let your app continue
> > to
[quoted text clipped - 5 lines]
> notifications are late, while control is already at the loop's next
> cicle.
You mean, on the next pass through the event loop? That's normal.
Notifications are delivered using the event loop, but there's no
guarantee of them arriving at any particular pass through the loop.

Signature
Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 2.0: Delocalize, Repair Permissions, lots more.
See http://www.atomicbird.com/
Michael Ash - 29 Jun 2005 21:50 GMT
>> Just return control back to the event loop and let your app continue
>> to
[quoted text clipped - 5 lines]
> notifications are late, while control is already at the loop's next
> cicle.
That's the entire point of using a notification in this case. The search
won't complete instantly. By using a notification, your application can
continue to be responsive in the user until it finishes.