Draw the stroke and background color for the ruler view
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 11 Jan 2011 23:52:28 +0000 (18:52 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 16 Jan 2011 04:45:08 +0000 (23:45 -0500)
Source/BSLineNumberRulerView.m

index 601c5acf0d0dcb9387794a4a5191c1fec150101f..c70d209ca8b796e635e5ca541331771bae2a93b8 100644 (file)
   [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