I get a basic data error that I cannot figure out how to fix.
I basically pull all the object data into the dictionary, showing the data in the form, and some fields allow editing, and then try to save the data back to the object when sending.
However, when setting all new / updated values, I get an error
Unacceptable type of value for attribute: property = "totalLocations"; desired type = NSNumber; given type = __NSCFString; value = 7.
Here is the code that processes this property ...
if (myObject.totalLocations)
[data setObject:myObject.totalLocations forKey:@"totalLocations"];
_myObject.totalLocations = [data objectForKey:@"totalLocations"];
aside from these two lines, the property is not used too much. it can be changed, but not by the user on this particular screen
source
share