开发者

how to move NSTextField

I know how to create a NSTextField programmatically in Xcode, but what I want to know is how do I move this around 开发者_如何学Pythonthe window?

How do I move an NSTextField from point A to point B?


NSTextField inherits from NSView, which means the way you set its location is with setFrame:.

Take a look at the View Programming Guide for a full explanation of the concepts of a view's frame & bounds.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜