• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data: first NSKeyValueObservingOptionOld is Null
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Core Data: first NSKeyValueObservingOptionOld is Null
      • From: "Timothy J. Wood" <email@hidden>
  • Prev by Date: No Cocoaheads Lake Forest meeting tonight, 7/3 Next meeting on 8/7
  • Next by Date: RE: Cocoa and dead-code stripping
  • Previous by thread: No Cocoaheads Lake Forest meeting tonight, 7/3 Next meeting on 8/7
  • Next by thread: Re: Core Data: first NSKeyValueObservingOptionOld is Null
  • Index(es):
    • Date
    • Thread