Open Spokane-Dude opened 8 years ago
which indicates it is NOT returning the NSDictionary as it should.
You are using the MR_executeFetchRequest
method which has the following Signature:
+ (NSArray *) MR_executeFetchRequest:(NSFetchRequest *)request
Setting the result type to NSDictionaryResultType
does not change the type of the collection thats returned, this method will always return an NSArray
.
Instead, the resultType
attribute of a of NSFetchRequest
will change the type of objects in the collection: With NSDictionaryResultType
you will get NSArray<NSDictionary *> *
instead of NSArray<NSManagedObject *> *
Here is my code:
I get a warning from the build:
which indicates it is NOT returning the NSDictionary as it should. And by the way, nothing is returned by the fetchRequest, although there is a record that should have been returned.