How to convert dictionary data to NSManagedObject data? I used propertiesToFetch, and it returns dictionary data. But I want NSManagedObject data. please guide me
[fetchRequest setPropertiesToFetch:[NSArray arrayWithObjects:catalogID, pageID, nil]];
[fetch setResultType:NSDictionaryResultType];
[fetch setReturnsDistinctResults : YES];
NSError* error = nil;
self.resultPageArray = [context executeFetchRequest:fetch error:&error];
When I changed the type to NSManagedObjectResultType, then I got non-distinct data. I read that while using propertiesToFetch it saves the data in dictionary format. But I want to get the distinct data and save it into the NSManagedObjects
propertiesToFetchandresultTypeaffect only received data (get) it does not affect how the data is saved (set) - vadian