Created
March 2, 2012 21:13
-
-
Save wess/1961452 to your computer and use it in GitHub Desktop.
BezierDammit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSColor *topBorderColor = WHITE; | |
NSColor *btmBorderColor = HEX_COLOR(@"aaa"); | |
NSBezierPath *topBorder = [NSBezierPath bezierPath]; | |
[topBorder moveToPoint:CGPointMake(0.0f, 0.0f)]; | |
[topBorder lineToPoint:CGPointMake(dirtyRect.size.width, 0.0f)]; | |
[topBorder setLineWidth:1.0f]; | |
[topBorderColor setStroke]; | |
[topBorder stroke]; | |
NSBezierPath *btmBorder = [NSBezierPath bezierPath]; | |
[btmBorder moveToPoint:CGPointMake(0.0f, dirtyRect.size.height)]; | |
[btmBorder lineToPoint:CGPointMake(dirtyRect.size.width, dirtyRect.size.height)]; | |
[btmBorder setLineWidth:1.0f]; | |
[btmBorderColor setStroke]; | |
[btmBorder stroke]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment