FROM : Keary Suska
DATE : Sun May 11 17:33:04 2008
on 5/10/08 7:54 PM, <email_removed> purportedly said:
> On May 10, 2008, at 12:03 PM, Dave Fernandes wrote:
>
>> You can also register for the
>> NSManagedObjectContextObjectsDidChangeNotification to get a
>> notification when anything in the MOC changes. Presumable you can
>> then check [moc hasChanges], but I've never used that method.
>
> I would also expect that you can observe your NSManagedObjectContext's
> "hasChanges" property using KVO.
That's what I tried first, which wasn't working, before I read the docs
further:
"This property is not key-value observing compliant (see Key-Value Observing
Programming Guide)‹if you are using Cocoa bindings, you cannot bind to the
hasChanges property of a managed object context."
That would have been perfect. Maybe I will submit an enhancement radar to
get this value KVO compliant.
The notification will actually work well for my purposes. That option should
have been obvious but I guess this is my d'oh! du jour.
Thanks,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
DATE : Sun May 11 17:33:04 2008
on 5/10/08 7:54 PM, <email_removed> purportedly said:
> On May 10, 2008, at 12:03 PM, Dave Fernandes wrote:
>
>> You can also register for the
>> NSManagedObjectContextObjectsDidChangeNotification to get a
>> notification when anything in the MOC changes. Presumable you can
>> then check [moc hasChanges], but I've never used that method.
>
> I would also expect that you can observe your NSManagedObjectContext's
> "hasChanges" property using KVO.
That's what I tried first, which wasn't working, before I read the docs
further:
"This property is not key-value observing compliant (see Key-Value Observing
Programming Guide)‹if you are using Cocoa bindings, you cannot bind to the
hasChanges property of a managed object context."
That would have been perfect. Maybe I will submit an enhancement radar to
get this value KVO compliant.
The notification will actually work well for my purposes. That option should
have been obvious but I guess this is my d'oh! du jour.
Thanks,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
| 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

