Hey all,
I have an app which is reading from an XML file and saving the info in core data.
In my one entity Statement I have an an attribute accNum of type Integer and a few others of type Decimal.
For the Decimal attribute I'm saving them to core data as follows:
Code:
statement = (Statements *)[NSEntityDescription insertNewObjectForEntityForName:@"Statement" inManagedObjectContext:appDelegate.managedObjectContext];
[statement setBalanceOpen: [NSDecimalNumber decimalNumberWithDecimal:[[attributeDict objectForKey:@"balance_open"] decimalValue]]];
However I'm struggling to save the Integer to the core data attribute.
Any help please?
Thanks
mc