-
Notifications
You must be signed in to change notification settings - Fork 33
/
CSFileTypeList.h
44 lines (34 loc) · 958 Bytes
/
CSFileTypeList.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
32
33
34
35
36
37
38
39
40
41
42
43
44
#import <Cocoa/Cocoa.h>
@interface CSFileTypeList:NSTableView
{
}
-(id)initWithCoder:(NSCoder *)coder;
-(id)initWithFrame:(NSRect)frame;
-(void)dealloc;
-(IBAction)selectAll:(id)sender;
-(IBAction)deselectAll:(id)sender;
@end
/*
Columns:
enabled (checkbox)
description (string)
extensions (string)
[type] (string)
*/
@interface CSFileTypeListSource:NSObject
{
NSArray *filetypes;
}
-(id)init;
-(void)dealloc;
-(NSArray *)readFileTypes;
-(int)numberOfRowsInTableView:(NSTableView *)table;
-(id)tableView:(NSTableView *)table objectValueForTableColumn:(NSTableColumn *)column row:(int)row;
-(void)tableView:(NSTableView *)table setObjectValue:(id)object forTableColumn:(NSTableColumn *)column row:(int)row;
-(void)claimAllTypes;
-(void)surrenderAllTypes;
-(void)claimType:(NSString *)type;
-(void)surrenderType:(NSString *)type;
-(void)setHandler:(NSString *)handler forType:(NSString *)type;
-(void)removeHandlerForType:(NSString *)type;
@end