Re: Core Data: undo and non-object attribute [SOLVED]
Re: Core Data: undo and non-object attribute [SOLVED]
- Subject: Re: Core Data: undo and non-object attribute [SOLVED]
- From: Jakob Olesen <email@hidden>
- Date: Mon, 16 Oct 2006 00:05:52 +0200
On 15/10/2006, at 23.37, Matteo Rossi wrote:
2. Keep your _point struct and implement primitive get/set accessors:
- (double)primitiveX
{
return _point.x;
}
- (void)setPrimitiveX:(double)x
{
_point.x = x;
}
That is all.
No, it can't be all. If I don't implement setX and X, setY and Y
KVO doesn't work nor undo and save.
That is very interesting. It means my skin-and-guts story was wrong,
and valueForKey: does not use the primitive accessors. My bad.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden