Yeah, the documentation has an example:
@interface Circle : NSManagedObject
{
CGFloat radius;
}
@property CGFloat radius;
@end
@implementation Circle
- (CGFloat)radius
{
[self willAccessValueForKey:@"radius"];
float f = radius;
[self didAccessValueForKey:@"radius"];
return f;
}
- (void)setRadius:(CGFloat)newRadius
{
[self willChangeValueForKey:@"radius"];
radius = newRadius;
[self didChangeValueForKey:@"radius"];
}
@end
But that's pretty much everything. So: How would I model that? And imagine this was a CGRect...there's no such type to select. So how can this work? There's a big piece of the puzzle missing. I guess these are transient properties of undefined type??