-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathCSVDocument.h
More file actions
29 lines (21 loc) · 766 Bytes
/
CSVDocument.h
File metadata and controls
29 lines (21 loc) · 766 Bytes
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
//
// CSVDocument.h
// QuickLookCSV
//
// Created by Pascal Pfiffner on 03.07.09.
// This sourcecode is released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0.html
//
#import <Cocoa/Cocoa.h>
/**
* An object representing data in a CSV file.
*/
@interface CSVDocument : NSObject
@property (copy, nonatomic) NSString *separator;
@property (copy, nonatomic) NSArray *rows;
@property (copy, nonatomic) NSArray *columnKeys;
@property (nonatomic, assign) BOOL autoDetectSeparator;
- (NSUInteger)numRowsFromCSVString:(NSString *)string error:(NSError **)error;
- (NSUInteger)numRowsFromCSVString:(NSString *)string maxRows:(NSUInteger)maxRows error:(NSError **)error;
- (BOOL)isFirstColumn:(NSString *)columnKey;
@end