X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Categories%2FNSMutableArray%2BMoveObject.h;h=e8ac0b0cfa51b411b2e1b17f4b011064629bc330;hp=ce62234b524a5815faf117945314b375b83f1641;hb=b14d8429658dd6f3f7b4904301031addb502b22c;hpb=58ce8f7f50f382f18e7b416eca737803af284868;ds=sidebyside 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;