Re: Console: *** -observeValueForKeyPath:... only defined for abstract class
Re: Console: *** -observeValueForKeyPath:... only defined for abstract class
- Subject: Re: Console: *** -observeValueForKeyPath:... only defined for abstract class
- From: Thomas Engelmeier <email@hidden>
- Date: Wed, 26 Sep 2007 15:06:26 +0200
On 26.09.2007, at 02:34, Jerry Krinock wrote:
On 2007 Sep, 24, at 2:04, Thomas Engelmeier wrote:
Without going into detail for your specific problem, I'd try to
break when that message is output and then inspect which object
outputs the message....If you are lucky, a breakpoint on
[NSException raise] or NSLog will work.
If the error does not occur 100% reproducible, it might be bad
memory management - an object deallocated and in the same memory
location repalced with something completely different, whose
method is invoked.
Thank you, Thomas. Further testing confirmed that it is not 100%
reproducible. Besides NSKeyValueObservance, sometimes the errant
message gets sent to an NSIdEnumerator and sometimes
objc_message_send crashes. So, yes, it looks like a case of
invalid message receiver.
To troubleshoot this, I defined observeValueForKeyPath:::: in a
category on NSObject, so that way any time that message was sent to
an object which didn't handle it, I'd get a log.
I have simply no idea about CoreData intrinsics, but I'm sure the
normal debug features like setting NSZombieEnabled and CFZombieLevel
will at least help tracing that down... <http://www.cocoadev.com/
index.pl?NSZombieEnabled>
HTH,
Tom_E
_______________________________________________
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