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

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -