• 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: -observeValueForKeyPath:ofObject:change:context: only defined for abstract class. Runtime error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >-observeValueForKeyPath:ofObject:change:context: only defined for abstract class. Runtime error (From: Carlos Rivera <email@hidden>)

  • Prev by Date: Re: What's the magic that makes cmd-w close a window?
  • Next by Date: Re: What's the magic that makes cmd-w close a window?
  • Previous by thread: Re: -observeValueForKeyPath:ofObject:change:context: only defined for abstract class. Runtime error
  • Next by thread: Send action on end editing
  • Index(es):
    • Date
    • Thread