Reputation: 2051
I need to add a CLRegion to my Core Data Entity but I don't what type to select for it.
I read this doc but I'm still confused on how to get it setup correctly. If someone could provide an explanation I'd reall appreciate it.
Upvotes: 0
Views: 470
Reputation: 867
For the entity attributes type for the CLRegion select "Transformable" Then define what the object is in the the NSManagedObject that Core Data generates for you. (see location below)
@interface Person : NSManagedObject
{
}
@property (nonatomic, retain) NSString * firstName;
@property (nonatomic, retain) NSString * lastName;
@property (nonatomic, retain) CLRegion * location;
@end
@implementation Person
@dynamic firstName;
@dynamic lastName;
@dynamic location;
@end
Upvotes: 1