I want to be able to print my custom NSManagedObject in the console, to do that, in my object, I’m overriding the description method, like this:
@implementation Place
@dynamic libelle;
@dynamic latitude;
@dynamic longitude;
- (NSString *)description {
return [NSString stringWithFormat:@"{libelle=%@, latitude=%@, longitude=%@}",
libelle, latitude, longitude];
}
@end
But I cannot access my @dynamic properties. Is there a way to do this ?
Ok, I got it. The property does not exist so we just need to use the accessor.