• 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
Trouble with NSKeyValueChangeInsertion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble with NSKeyValueChangeInsertion


  • Subject: Trouble with NSKeyValueChangeInsertion
  • From: Francisco Tolmasky <email@hidden>
  • Date: Mon, 19 Sep 2005 15:10:48 -0700

I created a simple model in XCode of an Entity with just one attribute: "name" which is a string. I then dragged that into an interface builder window for my app and created "Many Objects". When I run it, it works fine, allowing me to create as many of those entities as I want, naming them, searching through them, etc. However, I run into an interesting problem when I bind my custom view to the array controller containing these values. When I click "Add" in the generated view, an object is added to the list and my custom view receives observeValueForKeyPath: ofObject: change: context. However, the value of NSKeyValueChangeKindKey is NSKeyValueChangeSetting, as opposed to NSKeyValueChangeInsertion, which is what I would expect. Can someone explain this to me, and possibly how to rectify this?

Thanks in advance,

Francisco Tolmasky
email@hidden
www-scf.usc.edu/~tolmasky


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: JOB: Boulder, CO - need Mac Developer with Cocoa experience!
  • Next by Date: Re: JOB: Boulder, CO - need Mac Developer with Cocoa experience!
  • Previous by thread: Re: NSKeyedArchiver exception
  • Next by thread: class members? info
  • Index(es):
    • Date
    • Thread