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

This commit is contained in:
Klaas Pieter Annema committed 2010-05-25 20:37:00 +02:00
1 parent fd5a0cc468
commit 528203d8e5
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