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.
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 mails | Author | Date |
|---|---|---|
| Keary Suska | May 10, 20:46 | |
| I. Savant | May 10, 20:54 | |
| Dave Fernandes | May 10, 21:03 | |
| Chris Hanson | May 11, 03:54 | |
| Dave Fernandes | May 11, 07:40 | |
| I. Savant | May 11, 15:04 | |
| Hamish Allan | May 11, 16:36 | |
| Keary Suska | May 11, 17:33 |






Cocoa mail archive

