I have a NSFetchedResultsController that seperates my results into two sections. What I simply want to do is separate each section into its own array. Something like this, but this sends me an unrecognized selector error:
array1=[[[theFetchedResultsController sections] objectAtIndex:0] allObjects];
array2=[[[theFetchedResultsController sections] objectAtIndex:1] allObjects];
That’s because instances of
NSFetchedResultsSectionInfodon’t respond to-allObjects. They respond to-objects.allObjectsis an instance method ofNSSet.