-
Notifications
You must be signed in to change notification settings - Fork 10
/
Rik+Browser.m
53 lines (45 loc) · 932 Bytes
/
Rik+Browser.m
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
#import "Rik.h"
#import "Rik+Drawings.h"
@interface Rik(RikBrowser)
@end
@implementation Rik(RikBrowser)
- (NSColor *) browserHeaderTextColor
{
return [NSColor blackColor];
}
- (void) drawBrowserHeaderCell: (NSTableHeaderCell*)cell
withFrame: (NSRect)rect
inView: (NSView*)view;
{
}
- (NSRect) browserHeaderDrawingRectForCell: (NSTableHeaderCell*)cell
withFrame: (NSRect)rect
{
return NSInsetRect(rect, 4, 4);
}
- (void) drawBrowserRect: (NSRect)rect
inView: (NSView *)view
withScrollerRect: (NSRect)scrollerRect
columnSize: (NSSize)columnSize
{
NSBrowser *browser = (NSBrowser *)view;
NSRect bounds = [view bounds];
// Load the first column if not already done
if (![browser isLoaded])
{
[browser loadColumnZero];
}
}
- (CGFloat) browserColumnSeparation
{
return 1;
}
- (CGFloat) browserVerticalPadding
{
return 0;
}
- (BOOL) browserUseBezels
{
return NO;
}
@end