fix valueForKeyPath: attempting to call valueForKey: on controller markers

This commit is contained in:
Klaas Pieter Annema committed 2010-11-23 11:56:46 +01:00
1 parent 1e85a054ac
commit aeb3873f3c
2 files changed
+65

No files matched your search

+3
View File
@@ -178,6 +178,9 @@ var CPObjectAccessorsForClassKey = @"$CPObjectAccessorsForClassKey",
remainingKeyPath = aKeyPath.substring(firstDotIndex + 1),
value = [self valueForKey:firstKeyComponent];
if (CPIsControllerMarker(value))
return value;
return [value valueForKeyPath:remainingKeyPath];
}