Read Core data in Serial Queue for iPhone app

Posted by user1277209 on Stack Overflow See other posts from Stack Overflow or by user1277209
Published on 2012-03-18T17:39:01Z Indexed on 2012/03/19 18:04 UTC
Read the original article Hit count: 164

Filed under:
|
|

I have an app which uses Core data and the values are fetched from a link on internet.

This runs absolutely fine when I am creating a serial queue in AppDelegate and I am not facing any problem with the same.

Now, when I am trying to re-create similar scenario in a UITableViewController and executing the same in a serial queue but when the control reaches

NSError *error;
NSArray *match = [context executeFetchRequest:fetchRequest error:&error];

execution control disappears and then this code remains in the execution till eternity.

Can anyone help me with what exactly is wrong here?

FYI, I am passing the same ManagedObjectContext to the serial queue.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c