Skip navigation.
 
mlRe: Core Data: How to Observe "dirty" State?
FROM : I. Savant
DATE : Sun May 11 15:04:57 2008

> I would also expect that you can observe your 
> NSManagedObjectContext's "hasChanges" property using KVO.



  No, you can not:
  http://developer.apple.com/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSManagedObjectContext_Class/Reference/Reference.html#/
/apple_ref/doc/uid/TP30001182-BAJBHIDI

  Not everything is observable because not everything is compliant. 
There are a number of reasons why it might not be feasible or why it 
might be woefully inefficient to use KVO.

  I take it, Chris, you really like the KVO mechanism. I do to. ;-) 
But you can't fit everything into it, nor should you where performance 
is more important than programmer convenience.

--
I.S.

Related mailsAuthorDate
mlCore Data: How to Observe "dirty" State? Keary Suska May 10, 20:46
mlRe: Core Data: How to Observe "dirty" State? I. Savant May 10, 20:54
mlRe: Core Data: How to Observe "dirty" State? Dave Fernandes May 10, 21:03
mlRe: Core Data: How to Observe "dirty" State? Chris Hanson May 11, 03:54
mlRe: Core Data: How to Observe "dirty" State? Dave Fernandes May 11, 07:40
mlRe: Core Data: How to Observe "dirty" State? I. Savant May 11, 15:04
mlRe: Core Data: How to Observe "dirty" State? Hamish Allan May 11, 16:36
mlRe: Core Data: How to Observe "dirty" State? Keary Suska May 11, 17:33