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.
メソッドを使用する場合
[moc refreshObject:employee mergeChanges:NO];
、従業員は障害になり、保留中の変更はすべて失われます。しかし、従業員をnilに設定することでできると思いますが、それらの違いは何ですか。
employee = nil管理対象オブジェクトへのポインタのみを にnil設定しますが、管理対象オブジェクト コンテキスト内のオブジェクトをまったくリセットしません。
employee = nil
nil