By default, the Core Data generated managed object classes use NSNumber
objects
for Integer properties (and the output "384401632" is the address of that object).
So either print the number with %@
instead of %d
:
InfoLogMy(@"Objektnummer: %@", self.objekt.objektnr);
or convert it to an integer:
InfoLogMy(@"Objektnummer: %d", [self.objekt.objektnr intValue]);