Differences From Artifact [168c402c93]:
- File
src/OFMutableArray_adjacent.m
— part of check-in
[d5ddb2cb48]
at
2012-06-06 13:09:08
on branch trunk
— Rework OFDataArray API.
Also adds more checks. (user: js, size: 6600) [annotate] [blame] [check-ins using]
To Artifact [50b79cf523]:
- File src/OFMutableArray_adjacent.m — part of check-in [6f0ef1c5e1] at 2012-06-06 13:14:23 on branch trunk — Remove -[OFMutableArray removeNObjects:]. (user: js, size: 6040) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
23 24 25 26 27 28 29 | #import "OFDataArray.h" #import "OFAutoreleasePool.h" #import "OFEnumerationMutationException.h" #import "OFInvalidArgumentException.h" #import "OFOutOfRangeException.h" | < < | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #import "OFDataArray.h" #import "OFAutoreleasePool.h" #import "OFEnumerationMutationException.h" #import "OFInvalidArgumentException.h" #import "OFOutOfRangeException.h" @implementation OFMutableArray_adjacent + (void)initialize { if (self == [OFMutableArray_adjacent class]) [self inheritMethodsFromClass: [OFArray_adjacent class]]; } |
︙ | ︙ | |||
143 144 145 146 147 148 149 | id object = [self objectAtIndex: index]; [array removeItemAtIndex: index]; [object release]; mutations++; } | < < < < < < < < < < < < < < < < < < < < < < < < | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | id object = [self objectAtIndex: index]; [array removeItemAtIndex: index]; [object release]; mutations++; } - (void)removeAllObjects { id *objects = [array cArray]; size_t i, count = [array count]; for (i = 0; i < count; i++) [objects[i] release]; |
︙ | ︙ |