mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-21 15:55:02 +00:00
made CPDictionary call [super valueForKey:] on keys prefixed with @
This commit is contained in:
1 parent
fd5a0cc468
commit
528203d8e5
1 file changed
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user