Rysowanie zaokrąglonego NSTextFieldCell
Mój kod dla mojego NSTextFieldCell to:
- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
// Drawing code here.
NSGradient *gradient = [[NSGradient alloc] initWithStartingColor:[NSColor lightGrayColor] endingColor:[NSColor grayColor]];
[gradient drawInRect:cellFrame angle:90];
[[self title] drawInRect:cellFrame withAttributes:nil];
}
Chciałbym, aby NSTextFieldCell miał zaokrąglone rogi .... jak mogę to zrobić?