Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I think I have found a big bug in NSBrowser



*** 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: I think I have found a big bug in NSBrowser (From: Hamish Allan <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Andre <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Hamish Allan <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Andre <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Hamish Allan <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Andre <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Hamish Allan <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Andre <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Hamish Allan <email@hidden>)
 >Re: I think I have found a big bug in NSBrowser (From: Andre <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.