Skip to content

Instantly share code, notes, and snippets.

@wess
Created March 2, 2012 21:13
Show Gist options
  • Save wess/1961452 to your computer and use it in GitHub Desktop.
Save wess/1961452 to your computer and use it in GitHub Desktop.
BezierDammit
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