Permalink
Browse files

TDLV multiple selection

git-svn-id: http://tdappkit.googlecode.com/svn/trunk@31 920da3f4-33dd-3378-2bda-26f8a5ac8392
  • Loading branch information...
1 parent 3a1822c commit 845b956d7c185551071216ea5f4c79d7a094659d todd.ditchendorf committed Sep 20, 2010
Showing with 2 additions and 32 deletions.
  1. +0 −10 demo/listview/ListViewDemoAppDelegate.m
  2. +1 −1 include/TDAppKit/TDListView.h
  3. +0 −20 src/TDComboField.m
  4. +1 −1 src/TDListView.m
@@ -91,16 +91,6 @@ - (void)listView:(TDListView *)lv willDisplay:(TDListItem *)rv atIndex:(NSIntege
}
-- (NSInteger)listView:(TDListView *)lv willSelectItemAtIndex:(NSInteger)i {
- return i;
-}
-
-
-- (void)listView:(TDListView *)lv didSelectItemAtIndex:(NSInteger)i {
-
-}
-
-
- (void)listView:(TDListView *)lv itemWasDoubleClickedAtIndex:(NSUInteger)i {
}
@@ -117,7 +117,7 @@ extern NSString *const TDListItemPboardType;
@optional
- (CGFloat)listView:(TDListView *)lv extentForItemAtIndex:(NSUInteger)i; // should return height if isPortrait. shoud return width if isLandscape
- (void)listView:(TDListView *)lv willDisplayItem:(TDListItem *)item atIndex:(NSUInteger)i;
-- (NSUInteger)listView:(TDListView *)lv willSelectItemsAtIndexes:(NSIndexSet *)set;
+- (NSIndexSet *)listView:(TDListView *)lv willSelectItemsAtIndexes:(NSIndexSet *)set;
- (void)listView:(TDListView *)lv didSelectItemsAtIndexes:(NSIndexSet *)set;
- (void)listView:(TDListView *)lv itemWasDoubleClickedAtIndex:(NSUInteger)i;
- (void)listViewEmptyAreaWasDoubleClicked:(TDListView *)lv;
View
@@ -413,26 +413,6 @@ - (CGFloat)listView:(TDListView *)lv extentForItemAtIndex:(NSUInteger)i {
}
-- (void)listView:(TDListView *)lv willDisplayItem:(TDListItem *)item atIndex:(NSUInteger)i {
-
-}
-
-
-- (NSUInteger)listView:(TDListView *)lv willSelectItemAtIndex:(NSUInteger)i {
- return i;
-}
-
-
-- (void)listView:(TDListView *)lv didSelectItemAtIndex:(NSUInteger)i {
-
-}
-
-
-- (void)listView:(TDListView *)lv itemWasDoubleClickedAtIndex:(NSUInteger)i {
-
-}
-
-
#pragma mark -
#pragma mark Buttons
View
@@ -220,7 +220,7 @@ - (void)setSelectionIndexes:(NSIndexSet *)set {
// dont consult delegate if we are deselecting
if (set && delegate && [delegate respondsToSelector:@selector(listView:willSelectItemsAtIndexes:)]) {
- if (![delegate listView:self willSelectItemsAtIndexes:set]) {
+ if (![[delegate listView:self willSelectItemsAtIndexes:set] count]) {
return;
}
}

0 comments on commit 845b956

Please sign in to comment.