Bindings problem
Bindings problem
- Subject: Bindings problem
- From: "Lorenzo Thurman" <email@hidden>
- Date: Thu, 21 Feb 2008 20:49:30 -0600
I've been using bindings for user preferences, but now I've gotten a little
more into the whole kvc/kvo thing, but have run into a problem:I have two
array controllers. Each bound to my controller (not an nscontroller, just my
main class), with a model key path pointing to arrays that are populated by
one of the delegate methods of NSXMLParser
When these arrays are populated, (their contents is an nsdictionary), the
values in the dictionarys are used to populate the rows of two table views.
This works just fine it seems, the data is displayed as expected, but that I
get this error when clicking on any of the rows in either table:
*2008-02-21 19:06:11.171 TableTest[518:10b] Cannot remove an observer
<NSKeyValueObservance 0x15a710> for the key path "state" from
<NSCFDictionary 0x1ee4d0> because it is not registered as an observer.*
Two questions:
Why do I get this error and how do I fix it? I did some searching for
various combinations of "Cannot remove an observer" and "because it is not
registered as an observer" and "for the key path" but couldn't find anything
relevant except for this at apple:
http://developer.apple.com/releasenotes/Cocoa/Foundation.html#KVCKVO
This kind of suggests that this is a bug.
Why don't I get this error for each key in the dictionary? There are three
keys, in the dictionary.
That's actually 3 questions. Thanks
--
"My break-dancing days are over, but there's always the funky chicken"
--The Full Monty
_______________________________________________
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