https://src.bluestatic.org
/
macgdbp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e768fda
)
Draw the stroke and background color for the ruler view
author
Robert Sesek <rsesek@bluestatic.org>
Tue, 11 Jan 2011 23:52:28 +0000
(18:52 -0500)
committer
Robert Sesek <rsesek@bluestatic.org>
Sun, 16 Jan 2011 04:45:08 +0000
(23:45 -0500)
Source/BSLineNumberRulerView.m
patch
|
blob
|
history
diff --git
a/Source/BSLineNumberRulerView.m
b/Source/BSLineNumberRulerView.m
index 601c5acf0d0dcb9387794a4a5191c1fec150101f..c70d209ca8b796e635e5ca541331771bae2a93b8 100644
(file)
--- a/
Source/BSLineNumberRulerView.m
+++ b/
Source/BSLineNumberRulerView.m
@@
-32,4
+32,16
@@
[self setClientView:[[self scrollView] documentView]];
}
+- (void)drawHashMarksAndLabelsInRect:(NSRect)rect
+{
+ // Draw the background color.
+ [[NSColor colorWithDeviceRed:0.871 green:0.871 blue:0.871 alpha:1] set];
+ [NSBezierPath fillRect:rect];
+
+ // Draw the right stroke.
+ [[NSColor grayColor] setStroke];
+ [NSBezierPath strokeLineFromPoint:NSMakePoint(NSMaxX(rect), NSMinY(rect))
+ toPoint:NSMakePoint(NSMaxX(rect), NSMaxY(rect))];
+}
+
@end