NSManagedObject
/* Distinguish between changes that should and should not dirty the object for any key unknown to Core Data. 10.5 & earlier default to NO. 10.6 and later default to YES. */
/* Similarly, transient attributes may be individually flagged as not dirtying the object by adding +(BOOL)contextShouldIgnoreChangesFor<key> where <key> is the property name. */
+ (BOOL)contextShouldIgnoreUnmodeledPropertyChanges NS_AVAILABLE(10_6,3_0);
瞬態屬性可以通過撤消/重做管理器來處理,不需要額外的屬性。
我發現核心數據的一些奇怪的行爲「髒」的製作規則:
在iOS 5設置瞬態特性在-(void)didSave
化妝方面髒,但在iOS 4.3使得不是。
how to make NSManagedObjectContext dirty (hasChanges = YES) Manually
我不認爲核心數據可能會反思你的NSManagedObjects
定製子類