Re: async NSOperation and NSOperationQueue
Re: async NSOperation and NSOperationQueue
- Subject: Re: async NSOperation and NSOperationQueue
- From: "I. Savant" <email@hidden>
- Date: Tue, 16 Sep 2008 15:18:37 -0400
On Tue, Sep 16, 2008 at 12:50 PM, John Love <email@hidden> wrote:
> [theQueue waitUntilAllOperationsAreFinished];
>From the documentation for this method:
"When called, this method blocks the current thread and waits for the
receiver's current and pending operations to finish executing. While
the thread is blocked, the receiver continues to launch already queued
operations and monitor those that are executing. During this time, the
current thread cannot add operations to the queue, but other threads
may. Once all of the pending operations are finished, this method
returns."
Also, I see a call to -[NSAppleScript compileAndReturnError:] ... If
you're trying to put an AppleScript into an NSOperation/Queue, note
that AppleScript is most emphatically NOT thread-safe.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden