Core Data: first NSKeyValueObservingOptionOld is Null
Core Data: first NSKeyValueObservingOptionOld is Null
- Subject: Core Data: first NSKeyValueObservingOptionOld is Null
- From: "Ken Kania" <email@hidden>
- Date: Tue, 3 Jul 2007 17:01:12 -0700
I am using KVO and have been receiving messages that show (null) for
NSKeyValueObservingOptionOld, and then the proper value for
NSKeyValueObservingOptionNew.
I load my core data from a xml persistent store, which I can see has the
correct value for the attribute. When I fetch this object and add an
observer for this attribute however, I receive the above KVO message. I
have a NSTableView bound to an attribute of the same entity through a
NSArrayController. If I unbind the NSTableColumn from the attribute, I do
not receive a message saying the key was changed.
Also, regardless of the bindings for the previous table, if I access or set
any attribute of the object in any way BEFORE I add the KVO observer to the
attribute, I never receive a message saying the key was changed. If I
access the object anytime after I added the obeserver, I still end up
getting the same key change message.
_______________________________________________
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