Re: -observeValueForKeyPath:ofObject:change:context: only defined for abstract class. Runtime error
Re: -observeValueForKeyPath:ofObject:change:context: only defined for abstract class. Runtime error
- Subject: Re: -observeValueForKeyPath:ofObject:change:context: only defined for abstract class. Runtime error
- From: mmalcolm crawford <email@hidden>
- Date: Tue, 11 Oct 2005 19:54:44 -0700
On Oct 11, 2005, at 4:48 AM, Carlos Rivera wrote:
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object
change:(NSDictionary *)change context:(void *)context
{
if([keyPath isEqual:@"distance"])
{
NSLog(@"receiving notification that the distance changed");
[self updateTotalDistance];
}
}
You haven't called super for keys other than "distance".
mmalc
_______________________________________________
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