Created
January 26, 2010 05:55
-
-
Save saikat/286590 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)selectPreviousWidget | |
| { | |
| if ([_items count] == 0) | |
| return; | |
| if ([_selectionIndexes firstIndex] > 0) | |
| [self setSelectionIndexes:[CPIndexSet indexSetWithIndex:[_selectionIndexes firstIndex]-1]]; | |
| else | |
| [self setSelectionIndexes:[CPIndexSet indexSetWithIndex:[_items count]-1]]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment