X-Git-Url: https://git.yukkurigames.com/?a=blobdiff_plain;f=Categories%2FNSMutableArray%2BMoveObject.h;h=e8ac0b0cfa51b411b2e1b17f4b011064629bc330;hb=30947f178cfe375c8580c844cd9c9a96e7e4fa2f;hp=ce62234b524a5815faf117945314b375b83f1641;hpb=a7260fe79808efcad6a92cace15a1b3429f14787;p=enjoyable.git diff --git a/Categories/NSMutableArray+MoveObject.h b/Categories/NSMutableArray+MoveObject.h index ce62234..e8ac0b0 100644 --- a/Categories/NSMutableArray+MoveObject.h +++ b/Categories/NSMutableArray+MoveObject.h @@ -11,10 +11,9 @@ @interface NSMutableArray (MoveObject) - (void)moveObjectAtIndex:(NSUInteger)src toIndex:(NSUInteger)dst; - // Move the object at index src to (pre-move) index dst. Other + // Move the object at index src to (post-move) index dst. Other // objects shift up or down as necessary to make room, as in - // insertObject:atIndex:. Because the object is also removed from - // the source index, its resulting index may be one less than dst. + // insertObject:atIndex:. - (BOOL)moveFirstwards:(id)object upTo:(NSUInteger)minIndex; - (BOOL)moveLastwards:(id)object upTo:(NSUInteger)maxIndex;