Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><a href="http://developer.apple.com/library/ios/#DOCUMENTATION/CoreData/Reference/NSFetchedResultsController_Class/Reference/Reference.html" rel="nofollow">The NSFetchedResultsController</a> documentation for <code>fetchedObjects</code> property states:</p> <blockquote> <p>The results array only includes instances of the entity specified by the fetch request (fetchRequest) and that match its predicate. (If the fetch request has no predicate, then the results array includes all instances of the entity specified by the fetch request.)</p> <p>The results array reflects the in-memory state of managed objects in the controller’s managed object context, not their state in the persistent store. <strong>The returned array does not, however, update as managed objects are inserted, modified, or deleted.</strong></p> <p>Availability Available in iOS 3.0 and later.</p> </blockquote> <p>I can't say what the appropriate workaround is. My first thought is to call <code>performFetch:</code> in <code>controllerDidChangeContent:</code> in the delegate implementation. </p> <p>The <code>fetchedObjects</code> array appears to update simply by overriding <code>controllerDidChangeContent:</code> with an empty implementation. This is the case using both the iPad and the iPad simulator for iOS 5.1. </p> <p>There's clearly some discrepancy between the documentation and what I have observed. I have no explanation. Sorry. I can only suggest that you perform the fetch in <code>controllerDidChangeContent:</code> just to be safe. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload