I have a NSTextField with rounded corners generated by subclassing NSTextFieldCell and overriding
(void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
With the following
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
controlView.layer.cornerRadius = cellFrame.size.height / 2;
[super drawInteriorWithFrame:cellFrame inView:controlView];
}
This seems to work fine, however when the textfield is first responder the focus ring still appears as a rectangle shape. Is it possible modify the focus ring to correspond to the shape of the NSTextField?