276
277
278
279
280
281
282
283
284
285
286
287
288
289
|
[self removeObjectAtIndex: range.start];
}
- (void)removeLastObject
{
[self removeNObjects: 1];
}
#ifdef OF_HAVE_BLOCKS
- (void)replaceObjectsUsingBlock: (of_array_replace_block_t)block
{
[self enumerateObjectsUsingBlock: ^ (id object, size_t index,
BOOL *stop) {
[self replaceObjectAtIndex: index
|
>
>
>
>
>
|
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
|
[self removeObjectAtIndex: range.start];
}
- (void)removeLastObject
{
[self removeNObjects: 1];
}
- (void)removeAllObjects
{
[self removeNObjects: [self count]];
}
#ifdef OF_HAVE_BLOCKS
- (void)replaceObjectsUsingBlock: (of_array_replace_block_t)block
{
[self enumerateObjectsUsingBlock: ^ (id object, size_t index,
BOOL *stop) {
[self replaceObjectAtIndex: index
|