• 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: Difference between NSOperationQueue and NSThread in iOS4?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Difference between NSOperationQueue and NSThread in iOS4?


  • Subject: Re: Difference between NSOperationQueue and NSThread in iOS4?
  • From: David Duncan <email@hidden>
  • Date: Wed, 25 Aug 2010 10:02:04 -0700

On Aug 25, 2010, at 9:50 AM, Dave Carrigan wrote:

> I would bet that NSOperation on iOS4 is using grand central dispatch, whereas NSOperation on iOS3 probably used NSThreads. In any case, as the other commenter said, doing UI operations on any thread other than the main one is going to cause lots of weirdness.


This is the likely reason. When NSOperation used threads, the threads were likely to terminate relatively quickly, taking their runloops with them. When the runloop was destroyed, Core Animation would flush its state, allowing the changes to your views to occur. Now that NSOperation uses GCD, the threads are much longer lived and thus Core Animation's state flush doesn't occur (because you aren't running a run loop).
--
David Duncan

_______________________________________________

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: 
 >Difference between NSOperationQueue and NSThread in iOS4? (From: Scott Andrew <email@hidden>)
 >Re: Difference between NSOperationQueue and NSThread in iOS4? (From: Michael Ash <email@hidden>)
 >Re: Difference between NSOperationQueue and NSThread in iOS4? (From: Scott Andrew <email@hidden>)
 >Re: Difference between NSOperationQueue and NSThread in iOS4? (From: Dave Carrigan <email@hidden>)

  • Prev by Date: Re: Difference between NSOperationQueue and NSThread in iOS4?
  • Next by Date: Re: Crashes in _Unwind_Resume
  • Previous by thread: Re: Difference between NSOperationQueue and NSThread in iOS4?
  • Next by thread: Navigation Services
  • Index(es):
    • Date
    • Thread