Re: Simple array controller master-detail binding problem
Re: Simple array controller master-detail binding problem
- Subject: Re: Simple array controller master-detail binding problem
- From: Quincey Morris <email@hidden>
- Date: Sun, 23 Aug 2009 21:30:46 -0700
On Aug 23, 2009, at 19:58, Leon Starr wrote:
I can't make a lot of sense out of the stack trace, but it does end
with:
0 objc_msgSend
1 objc_getProperty
2 -[Combatant weapons]
3 -[NSObject(NSKeyValueCoding) valueForKey:]
4- [NSObject(NSKeyValueCoding) valueForKeyPath:]
You left out the vital piece of information: the error message that
was logged when this occurred. Look in the debugger console window.
(However, if this is an exception, sometimes the exception is thrown
before the error is logged. You may have to continue until the error
message appears.)
According to your stack trace, something is attempting to retrieve the
"weapons" property of a Combatant, which seems perfectly reasonable,
and all your bindings appear reasonable at first glance. The most
likely cause of your problem is a memory management error in your code
-- the Combatant object with name "Vlad" has likely been over-
released. Chances are, when you see the error message, it will tell
you that "weapons" was sent to an object of the wrong class, and that
would pretty much confirm it. (That is, the memory that was previously
a Combatant object has been reused for a different class of object.)
_______________________________________________
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