开发者

Manage padding for a NSTextField

开发者 https://www.devze.com 2023-04-11 18:17 出处:网络
I\'ve create a subclass of NSTextField to manage its background color, text color, insertion point color and so on ...

I've create a subclass of NSTextField to manage its background color, text color, insertion point color and so on ...

I'd like to improve customized aspect of the objects from this class, but i can't understand how to manage size. If i change frame.size.height property the field grows from bottom but text开发者_运维技巧's still placed at the top of the field.

Here a screen to describe what i mean:

Manage padding for a NSTextField

I'd like to be able to manage a sort of "padding" and maintain text on the center of the field .

0

精彩评论

暂无评论...
验证码 换一张
取 消