-
Notifications
You must be signed in to change notification settings - Fork 36
/
IGKArrayController.h
64 lines (48 loc) · 1.56 KB
/
IGKArrayController.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// IGKArrayController.h
// Ingredients
//
// Created by Alex Gordon on 13/02/2010.
// Written in 2010 by Fileability.
//
#import <Cocoa/Cocoa.h>
#import <dispatch/dispatch.h>
@class IGKDocRecordManagedObject;
@interface IGKArrayController : NSObject<NSTableViewDataSource, NSTableViewDelegate>
{
IBOutlet NSTableView *tableView;
NSUInteger maxRows;
NSPredicate *predicate;
NSString *predicateString;
NSArray *predicateParameters;
NSArray *smartSortDescriptors;
NSArray *currentSortDescriptors;
NSMutableArray *fetchedObjects;
id vipObject;
BOOL fetchContainsVipObject;
BOOL sortIsAscending;
NSString *sortColumn;
NSString *entityToFetch;
IBOutlet id delegate;
BOOL isSearching;
NSTimeInterval startedSearchTimeInterval;
}
@property (assign) NSPredicate *predicate;
@property (assign) NSString *predicateString;
@property (assign) NSArray *predicateParameters;
@property (assign) NSArray *smartSortDescriptors;
@property (assign) NSArray *currentSortDescriptors;
@property (assign) NSUInteger maxRows;
@property (assign) NSString *entityToFetch;
//The VIP object, if set, will sit at the very top of the the predicate or anything else
@property (assign) id vipObject;
- (void)refresh;
- (void)refreshAndSelectObject:(IGKDocRecordManagedObject *)obj renderSelection:(BOOL)renderSelection;
- (void)refreshAndSelectIndex:(NSInteger)idx renderSelection:(BOOL)renderSelection;
- (id)objectAtRow:(NSInteger)row;
- (id)selection;
- (BOOL)canSelectPrevious;
- (BOOL)canSelectNext;
- (IBAction)selectPrevious:(id)sender;
- (IBAction)selectNext:(id)sender;
@end