Re: willChangeValueForKey, Ivars and Core Data
Re: willChangeValueForKey, Ivars and Core Data
- Subject: Re: willChangeValueForKey, Ivars and Core Data
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 19 Sep 2005 00:52:05 -0700
On Sep 18, 2005, at 10:14 PM, Scott Ahten wrote:
A NSTimer is used to calculate and update this value every second,
which is displayed in a NSTableView column in my UI using KVO.
However, when this attribute is set, a dark dot is displayed in the
close button and the document is flagged as "dirty". Since this
attribute is set to transient in my CoreData model, not used to set
other persistent properties, nor are any persistent attributes
"dependent" on this attribute, I'm not sure why the document thinks
it's dirty and needs to be saved.
Transient properties are defined:
"A property of an entity that is not saved to a persistent data
store, but which is recorded for undo and redo operations in memory."
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/
Articles/cdGlossary.html>
If you don't want the property to be recorded for undo and redo,
don't include it in the model.
mmalc
_______________________________________________
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