Re: Changes in -performSelectorOnMainThread: from iOS 6 to 7?
Re: Changes in -performSelectorOnMainThread: from iOS 6 to 7?
- Subject: Re: Changes in -performSelectorOnMainThread: from iOS 6 to 7?
- From: Fritz Anderson <email@hidden>
- Date: Wed, 12 Feb 2014 09:58:46 -0600
On 11 Feb 2014, at 6:04 PM, Rick Mann <email@hidden> wrote:
> I'm updating an old project that was built long ago, skipping udpates for iOS 5 & 6. One of the things my app does, in an NSOperation, is call -performSelectorOnMainThread: (waiting until done) as it integrates downloaded data into the Core Data store (Core Data operations all happen on the main thread).
>
> In iOS 6, this can bring the app to a grinding halt, despite the fact that each record integrated is done as a separate -performSelector call (I would've thought that'd let the main thread handle user events).
>
> In iOS 7, it actually works really well, leading me to believe something changed in the way this is handled.
>
> Any insight? Thanks!
<http://stackoverflow.com/questions/8637921/core-datas-nsprivatequeueconcurrencytype-and-sharing-objects-between-threads>
It contains a reference to a WWDC video.
Then search the Apple docs for NSMainQueueConcurrencyType, and follow the links from there.
— F
--
Xcode 5 Start to Finish — due in stores March/April 2014
_______________________________________________
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