Re: I think I have found a big bug in NSBrowser
Re: I think I have found a big bug in NSBrowser
- Subject: Re: I think I have found a big bug in NSBrowser
- From: email@hidden
- Date: Tue, 31 Jan 2006 12:49:06 -0800
*** NSRunLoop ignoring exception '[<NSManagedObject 0x31d350>
valueForUndefinedKey:]: this class is not key value coding-compliant
for the key .' that raised during posting of delayed perform with
target 3c9f90 and selector 'invokeWithTarget:'
When setting arrangedObjects as the contentValue binding....
In addition to:
- (void)setObjectValue:(id)value
{
if ([value isKindOfClass:[Node class]])
{
[self setImage:[value icon]];
[self setLeaf:[value isLeaf]];
[super setObjectValue:[[value path] lastPathComponent]];
}
else
[super setObjectValue:value];
}
Also, I had to make sure to implement:
- (id)valueForUndefinedKey:(NSString *)key
{
return self;
}
in the model object.
Otherwise I get: *** NSRunLoop ignoring exception '[<NSManagedObject
0x31d350> valueForUndefinedKey:]: this class is not key value coding-
compliant for the key .' that raised during posting of delayed
perform with target 3c9f90 and selector 'invokeWithTarget:'
I guess the NSTreeController sends an empty string to the model
object, even if its not set as anything in the binding inspector....
Andre
email@hidden
_______________________________________________
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