Archived
1

Corrected errors when selecting expressions

This commit is contained in:
Kim Wittenburg
2014-09-08 22:43:20 +02:00
parent 4a3ff8606b
commit 91320385f0
3 changed files with 181 additions and 31 deletions

View File

@@ -10,6 +10,7 @@
@interface NSIndexPath (MPAdditions)
- (NSUInteger)firstIndex;
- (NSUInteger)lastIndex;
- (NSIndexPath *)indexPathByReplacingLastIndexWithIndex:(NSUInteger)index;
@@ -34,7 +35,8 @@
- (NSIndexPath *)indexPathByIncrementingLastIndex;
- (NSIndexPath *)indexPathByDecrementingLastIndex;
- (NSIndexPath *)indexPathWithLength:(NSUInteger)length; // use length indexes from the receiver, exception if too much
- (NSIndexPath *)indexPathByRemovingIndexesFrom:(NSUInteger)length; // use length indexes from the receiver, exception if too much
- (NSIndexPath *)indexPathByRemovingIndexesTo:(NSUInteger)length; // number of indexes from the beginning to exclude
- (NSIndexPath *)commonIndexPathWith:(NSIndexPath *)indexPath;