-
Notifications
You must be signed in to change notification settings - Fork 36
/
IGKDocRecordManagedObject.h
53 lines (40 loc) · 1.62 KB
/
IGKDocRecordManagedObject.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
//
// IGKDocRecordManagedObject.h
// Ingredients
//
// Created by Alex Gordon on 25/01/2010.
// Written in 2010 by Fileability.
//
#import <Cocoa/Cocoa.h>
#import "IGKHTMLGenerator.h"
#import "IGKManagedObject.h"
#import "CHSymbolButtonImage.h"
//Priorities of different objects when sorting the list in case of a tiebreak. From lowest priority to highest
typedef enum {
CHPriorityOther = 0, //Any object not convered by another priority class
CHPriorityMethod = 1,
CHPriorityFunction = 2,
CHPriorityType = 2, //Struct, Union, Enum, Typedef, etc
CHPriorityBindings = 3,
CHPriorityCategory = 4,
CHPriorityProtocol = 5,
CHPriorityFunctionContainer = 6,
CHPriorityClass = 7,
CHPriorityMaximum, //DON'T USE THIS! DON'T PUT ANY ENUM CONSTANTS AFTER IT. This is a placeholder element so that I can work out the maximum priority by doing CHPriorityMaximum - 1.
} CHRecordPriority;
@interface IGKDocRecordManagedObject : IGKManagedObject {
}
+ (IGKDocRecordManagedObject *)resolveURL:(NSURL *)url inContext:(NSManagedObjectContext *)ctx tableOfContentsMask:(IGKHTMLDisplayTypeMask *)tocMaskPointer;
- (NSURL *)docURL:(IGKHTMLDisplayTypeMask)tocMask;
+ (NSString *)entityNameFromURLComponentExtension:(NSString *)ext;
- (NSString *)URLComponentExtension;
- (NSString *)URLComponent;
- (NSURL *)docURL:(IGKHTMLDisplayTypeMask)tocMask;
- (NSImage *)normalIcon;
- (NSImage *)selectedIcon;
- (CHRecordPriority)priorityval;
- (NSString *)xcontainername;
- (IGKDocRecordManagedObject *)xcontainer;
- (CHSymbolButtonImageMask)iconMask;
+ (CHSymbolButtonImageMask)iconMaskForEntity:(NSString *)entityName isInstanceMethod:(BOOL)instanceMethod;
@end