• 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: -[NSOperationQueue cancelAllOperations] cleans queue, but not immediately?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[NSOperationQueue cancelAllOperations] cleans queue, but not immediately?!


  • Subject: Re: -[NSOperationQueue cancelAllOperations] cleans queue, but not immediately?!
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 31 Mar 2010 15:59:09 -0700

OK, I submitted some Document Feedback on -cancelAllOperations, referring to this thread in the list archives and complaining that the statement "Queued operations are cancelled before they begin executing" seems to be an oversimplification.

And I was able to solve my deadlock with -waitUntilAllOperationsAreFinished by instead adding a key-value observer method for @"operations" and testing if its count == 0.

This was my lucky day to have Mike Abdullah and Ken Thomases online when I had a threading issue.  Thanks again!_______________________________________________

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: 
 >-[NSOperationQueue cancelAllOperations] cleans queue, but not immediately?! (From: Jerry Krinock <email@hidden>)
 >Re: -[NSOperationQueue cancelAllOperations] cleans queue, but not immediately?! (From: Mike Abdullah <email@hidden>)
 >Re: -[NSOperationQueue cancelAllOperations] cleans queue, but not immediately?! (From: Jerry Krinock <email@hidden>)
 >Re: -[NSOperationQueue cancelAllOperations] cleans queue, but not immediately?! (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Creating thumbnail of PDF document first page?
  • Next by Date: Re: Moving from nib to code with custom controller.
  • Previous by thread: Re: -[NSOperationQueue cancelAllOperations] cleans queue, but not immediately?!
  • Next by thread: Re: -[NSOperationQueue cancelAllOperations] cleans queue, but not immediately?!
  • Index(es):
    • Date
    • Thread