Click here to load reader

Drag & drop

  • View
    2.677

  • Download
    3

Embed Size (px)

Text of Drag & drop

  • 1. Destination Finale 11

2. Stphane SudreGlisseur-dposeur 3. Dmo 4. Slection Simple 5. Drop autoris 6. Slection Multiple 7. Slection continueInterdire juste au-dessus et endessous de la slection 8. Slection discontinueInterdire en dessous de chaque lment de la slection 9. Slection continue?NSIndexSet {1,3,4}{3,4}{0,2}nombre = dernier - premier + 1 ? 10. @implementation NSIndexSet (Analysis)- (BOOL)containsOnlyOneRange{ NSUInteger tCount=[self count];if (tCount>0){ NSUInteger tFirstIndex=[self firstIndex]; NSUInteger tLastIndex=[self lastIndex];return ((tLastIndex-tFirstIndex+1)==tCount);}return NO;}@end 11. if ([_internalDragData containsOnlyOneRange]==YES){NSUInteger tFirstIndex=[_internalDragData firstIndex];NSUInteger tLastIndex=[_internalDragData lastIndex];if (destRow>=tFirstIndex && destRow

Search related