Note that there are some explanatory texts on larger screens.

plurals
  1. PO"message was received but not handled" KVO
    primarykey
    data
    text
    <p>I'm getting the following in my output window when running a project:</p> <pre><code>An -observeValueForKeyPath:ofObject:change:context: message was received but not handled. Key path: connection.messageQueue Observed object: &lt;Client: 0x10011ddb0&gt; ... </code></pre> <p>You get the idea. The thing is, I have no idea why this is happening. It appears everything is working fine, however. Here's the code causing the problem:</p> <pre><code>-(id) initWithIdentifier:(NSString*)ident andClient:(Client*)chatClient { if(![super initWithNibName:@"ChatView" bundle:nil]) { return nil; } [self setTitle: ident]; client = chatClient; [self setIdentifier:ident]; inContext = false; [client addObserver:self forKeyPath:@"connection.messageQueue" options:NSKeyValueObservingOptionNew context:NULL]; return self; } -(void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { NSAttributedString* rar = [[NSAttributedString alloc] initWithString:@"test"]; [[textView textStorage] appendAttributedString:rar]; [super observeValueForKeyPath:keyPath ofObject:object change:change context:context]; } </code></pre> <p>I thought I'd show all the code relating to this. The class only has a few methods so this is all you need to see. I'm not even using the change, I'm just plucking on "test" when the KVO event gets fired.</p> <p>The stack trace gets pretty big very quickly as messages are coming in all the time. Yet it seems everything is working okay.</p> <p>Any clues?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload