• 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: NSOperation cancellation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOperation cancellation


  • Subject: Re: NSOperation cancellation
  • From: Thomas Engelmeier <email@hidden>
  • Date: Tue, 26 May 2009 09:48:48 +0200


Am May 26, 2009 um 1:07 AM schrieb Kyle Sluder:

On Mon, May 25, 2009 at 10:15 AM, Thomas Engelmeier
<email@hidden> wrote:
My op polls isCancelled, returns from main and nothing more happens.



Please post your code, it's the only real way to investigate the issue
(especially since you're using operations/multithreading, where the
errors can be extremely subtle).

You were right. Copy-pasting the relevant code revealed that doing a [delegate performSelectorOnMainThread] while the main thread is blocked waiting for the last operation to finish is not a good idea ;-)


Thanks,
	Thomas
_______________________________________________

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: 
 >NSOperation cancellation (From: Thomas Engelmeier <email@hidden>)
 >Re: NSOperation cancellation (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: String Comparison and return values
  • Next by Date: Re: String Comparison and return values
  • Previous by thread: Re: NSOperation cancellation
  • Next by thread: NSTreeController and CoreData question
  • Index(es):
    • Date
    • Thread