Differences From Artifact [808b6f21ab]:
- File src/OFMutableDictionary_hashtable.m — part of check-in [e40729d406] at 2013-02-12 18:22:15 on branch trunk — Prefix all ivars with an underscore. (user: js, size: 1692) [annotate] [blame] [check-ins using]
To Artifact [62c70227b5]:
- File
src/OFMutableDictionary_hashtable.m
— part of check-in
[2de15db195]
at
2013-03-01 21:19:02
on branch trunk
— Rethrow some exceptions to fix class.
This way, the error message will show the called class instead of the
class used internally. (user: js, size: 2009) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
34 35 36 37 38 39 40 | if (self == [OFMutableDictionary_hashtable class]) [self inheritMethodsFromClass: [OFDictionary_hashtable class]]; } - (void)setObject: (id)object forKey: (id)key { | > | | > > > > > > | > > > > > | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | if (self == [OFMutableDictionary_hashtable class]) [self inheritMethodsFromClass: [OFDictionary_hashtable class]]; } - (void)setObject: (id)object forKey: (id)key { @try { [_mapTable setValue: object forKey: key]; } @catch (OFInvalidArgumentException *e) { @throw [OFInvalidArgumentException exceptionWithClass: [self class] selector: _cmd]; } } - (void)removeObjectForKey: (id)key { @try { [_mapTable removeValueForKey: key]; } @catch (OFInvalidArgumentException *e) { @throw [OFInvalidArgumentException exceptionWithClass: [self class] selector: _cmd]; } } #ifdef OF_HAVE_BLOCKS - (void)replaceObjectsUsingBlock: (of_dictionary_replace_block_t)block { @try { [_mapTable replaceValuesUsingBlock: |
︙ | ︙ |