I am writing an application using Core Data, with this attribute in one entity:
@property (nonatomic, retain) NSString * mesa;
I have a problem passing the value from a JSON processed dictionary:
local.mesa =[locales [0] valueForKey:@"mesa"];
I am obtaining this error:
'NSInvalidArgumentException', reason: 'Unacceptable type of value for attribute: property = "mesa"; desired type = NSNumber; given type = __NSCFString; value = Salón 2.'
This indicates to me that the desired type is NSNumber, but the attribute is declared as NSString in the xcdatamodel and the class.
It is possible that the first declaration of the attribute was NSNumber, and it seems as if he had not changed.
Any ideas?