开发者

Manage padding for a NSTextField

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜