Re: Core Data: How to Observe "dirty" State?
Re: Core Data: How to Observe "dirty" State?
- Subject: Re: Core Data: How to Observe "dirty" State?
- From: "I. Savant" <email@hidden>
- Date: Sun, 11 May 2008 09:04:57 -0400
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.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden