-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathTSCheckedListDataSource.h
31 lines (25 loc) · 1020 Bytes
/
TSCheckedListDataSource.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// TSCheckedListDataSource.h
// ThisService
//
// Created by Jesper on 2011-07-14.
// Copyright 2011-2012 waffle software. All rights reserved.
// BSD licensed - see license.txt for more information.
//
#import <Cocoa/Cocoa.h>
@class TSCheckedListDataSource;
@protocol TSCheckedListDataSourceDelegate
- (void)dataSource:(TSCheckedListDataSource *)dataSource checkedChoicesChanged:(NSArray *)selectedChoices;
@end
@interface TSCheckedListDataSource : NSObject <NSTableViewDelegate, NSTableViewDataSource> {
NSArray *rowData;
NSMutableIndexSet *selectedIndexes;
NSString *labelKey;
id<TSCheckedListDataSourceDelegate> delegate;
}
- (id)initWithRowData:(NSArray *)rowData selectedChoices:(NSIndexSet *)selectedIndexes labelKey:(NSString *)labelKey delegate:(id<TSCheckedListDataSourceDelegate>)delegate;
- (NSArray *)selectedChoices;
- (NSArray *)selectedChoiceValues;
- (BOOL)anyChoicesSelected;
+ (NSIndexSet *)indexSetOfSelectedIndexesForRowData:(NSArray *)rowData selectedValues:(NSSet *)values;
@end