Overview
Comment: | -[addObject:atIndex:] -> -[insertObject:atIndex:].
For consistency with Foundation. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
26f2ffa9084bcb98d90aa304e5acb19a |
User & Date: | js on 2012-06-06 12:15:46 |
Other Links: | manifest | tags |
Context
2012-06-06
| ||
12:23 | Add a missing check in OFDataArray. check-in: e68229ff3b user: js tags: trunk | |
12:15 | -[addObject:atIndex:] -> -[insertObject:atIndex:]. check-in: 26f2ffa908 user: js tags: trunk | |
12:15 | swapObjectAtIndex... -> exchangeObjectAtIndex... check-in: 13e6e99067 user: js tags: trunk | |
Changes
Modified src/OFMutableArray.h from [0c1ac94dc7] to [1edd47fa69].
︙ | |||
29 30 31 32 33 34 35 | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | - + - - + + | * \brief Adds an object to the OFArray. * * \param object An object to add */ - (void)addObject: (id)object; /** |
︙ |
Modified src/OFMutableArray.m from [aaf401cec7] to [e6d36fbf2d].
︙ | |||
173 174 175 176 177 178 179 | 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | - - + + - - + + | - copy { return [[OFArray alloc] initWithArray: self]; } - (void)addObject: (id)object { |
︙ |
Modified src/OFMutableArray_adjacent.m from [998a7318fe] to [725da742e3].
︙ | |||
38 39 40 41 42 43 44 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | - - + + | { [array addItem: &object]; [object retain]; mutations++; } |
︙ |
Modified tests/OFArrayTests.m from [19f0fe9122] to [1073eae76a].
︙ | |||
55 56 57 58 59 60 61 | 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | - - + + | TEST(@"-[description]", [[a[0] description ]isEqual: @"(\n\tFoo,\n\tBar,\n\tBaz\n)"]) TEST(@"-[addObject:]", R([m[0] addObject: c_ary[0]]) && R([m[0] addObject: c_ary[2]])) |
︙ |