forked from karelia/ConnectionKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CKHostCell.h
52 lines (39 loc) · 1.13 KB
/
CKHostCell.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
//
// CKHostCell.h
// Connection
//
// Created by Greg Hulands on 20/11/06.
// Copyright 2006 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
/*
Outline views that use the ConnectionRegistry as it's datasource need to have it's single colum
data cell as a CKHostCell. This is a modified version of Omni's cell class
*/
@interface CKHostCell : NSTextFieldCell
{
NSImage *myIcon;
struct {
unsigned int drawsHighlight:1;
unsigned int imagePosition:3;
unsigned int settingUpFieldEditor:1;
} myFlags;
}
- (NSImage *)icon;
- (void)setIcon:(NSImage *)anIcon;
- (NSCellImagePosition)imagePosition;
- (void)setImagePosition:(NSCellImagePosition)aPosition;
- (BOOL)drawsHighlight;
- (void)setDrawsHighlight:(BOOL)flag;
- (NSRect)textRectForFrame:(NSRect)cellFrame inView:(NSView *)controlView;
@end
extern NSString *CKHostCellStringValueKey;
extern NSString *CKHostCellSecondaryStringValueKey;
extern NSString *CKHostCellImageValueKey;
@interface CKHostExtendedCell : CKHostCell
{
NSString *mySecondaryString;
}
- (void)setSecondaryString:(NSString *)str;
- (NSString *)secondaryString;
@end