- (void)drawRect:(NSRect)rect {
[super drawRect:rect];
NSRect rectFill = NSInsetRect(self.bounds, 2, 2);
NSBezierPath * bezier = [NSBezierPath bezierPathWithRoundedRect:rectFill xRadius:2 yRadius:2];
[[NSColor blackColor] setFill];
[bezier fill];
}
网友评论