Trouble with NSKeyValueChangeInsertion
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