made CPDictionary call [super valueForKey:] on keys prefixed with @

This commit is contained in:
Klaas Pieter Annema authored and Ross Boucher committed 2010-05-25 11:40:45 -07:00
1 parent 359a29874b
commit 2a630a7210
1 file changed
+4 -1
+4 -1
View File
@@ -267,7 +267,10 @@ CPUnknownUserInfoKey = @"CPUnknownUserInfoKey";
- (id)valueForKey:(CPString)aKey
{
return [self objectForKey:aKey];
if ([aKey hasPrefix:@"@"])
return [super valueForKey:aKey.substr(1)];
return [self objectForKey:aKey];
}
- (void)setValue:(id)aValue forKey:(CPString)aKey