Drawing a rounded cornered NSTextFieldCell

前端 未结 1 1887
伪装坚强ぢ
伪装坚强ぢ 2021-01-23 14:24

My code for my NSTextFieldCell is:

- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
    // Drawing code here.
    NSGradient *gradi         


        
相关标签:
1条回答
  • 2021-01-23 14:32

    Use the layer property of NSView, then you can set a corner radius for this.

    0 讨论(0)
提交回复
热议问题