I'm trying to refresh a fetched array of objects using ReactiveCocoa, and I'd like to filter out results that have been deleted. I can't quite seem to get things working right — I expect that the filter
would be passed each NSManagedObject
in the trackSequence, but instead I see a _PFBatchFaultingArray
object.
Can anyone shed any light on what I'm doing wrong? Thanks!
RACSequence *trackSequence = [documentContextUpdated map:^NSArray *(RACTuple *tuple) {
return [DWFAbstractTrack MR_findAllSortedBy:DWFAbstractTrackAttributes.order ascending:YES inContext:tuple.second];
}].sequence;
RAC(self, tracks) = [trackSequence filter:^BOOL(NSManagedObject *managedObject) {
return (NO == [managedObject isDeleted]);
}].signal;