Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个要与远程服务器同步的实体。我想在其任何属性更改时将 NSManagedObject 实例标记为脏。我怎样才能在不引起递归的情况下实现这一点。我尝试在 validateForUpdate 和 NSManagedObjectContextObjectsDidChangeNotification 通知中执行此操作。但两者都会导致递归。