• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: async NSOperation and NSOperationQueue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: async NSOperation and NSOperationQueue (From: John Love <email@hidden>)
 >Re: async NSOperation and NSOperationQueue (From: Jason Coco <email@hidden>)
 >Re: async NSOperation and NSOperationQueue (From: John Love <email@hidden>)
 >Re: async NSOperation and NSOperationQueue (From: John Love <email@hidden>)

  • Prev by Date: Re: async NSOperation and NSOperationQueue
  • Next by Date: Re: referencing XML Data
  • Previous by thread: Re: async NSOperation and NSOperationQueue
  • Next by thread: Re: async NSOperation and NSOperationQueue
  • Index(es):
    • Date
    • Thread