2 // NSMutableArray+MoveObject.m
5 // Created by Joe Wreschnig on 3/7/13.
9 #import "NSMutableArray+MoveObject.h"
11 @implementation NSMutableArray (MoveObject)
13 - (void)moveObjectAtIndex:(NSUInteger)src toIndex:(NSUInteger)dst {
15 [self removeObjectAtIndex:src];
16 [self insertObject:obj atIndex:dst > src ? dst - 1 : dst];