iphone - NSFetchRequest does not read updated rows -


the data gets downloaded , written in core data in background thread (child/parent context) using nsfetchrequest first time reading ok. after refresh, pull data core data , update new values. again reading data nsfetchrequest in main thread/main context. still returns old values. have checked core data table , has new values in it. , can see updated data after killing , restarting app.

what doing wrong?

ps: sorry cant post code. huge project. other parts of project based on core data works perfectly. part getting on nerve. :-(

the problem fetchresult controller retrieving objects on main thread , had group on more 1 attribute , calculate date current time zone. had allthis done in background thread. once again learned core data objects not thread safe!


Comments

Popular posts from this blog

Using 'OR' and 'AND' in SQL Server -

c++ - NetBeans Remote Development with additional configuration -

visual studio - TFS will not accept changes I've made to a Java project -