• 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
Re: Simple array controller master-detail binding problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Simple array controller master-detail binding problem (From: Leon Starr <email@hidden>)

  • Prev by Date: Re: Drawing over a transparent background
  • Next by Date: Re: Using Core Data NSManagedObject subclasses outside of a managed object context
  • Previous by thread: Simple array controller master-detail binding problem
  • Next by thread: Re: Simple array controller master-detail binding problem
  • Index(es):
    • Date
    • Thread