NSRulerView markers
NSRulerView markers
- Subject: NSRulerView markers
- From: Ruben Smits <email@hidden>
- Date: Tue, 17 Jun 2003 09:58:54 +0200
I would like to call drawHashMarksAndLabelsInRect and drawMarkersInRect
in an override of drawRect in my NSRulerView-derived class.
The following code works fine at first glance, but the rulers are
updated incorrectly (leaving artifacts) when dragging the slider in a
scrollbar:
- (void)drawRect:(NSRect)rect
{
[[NSColor controlColor] set];
NSRectFill(rect);
[self drawHashMarksAndLabelsInRect:rect];
[self drawMarkersInRect:rect];
}
What's missing here?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.