开发者

Give focus to an control when the App starts in Cocoa

I have multiple TextFiled controls, and can I put a focus on a specific TextField when the App starts?

EDIT

- (void)awakeFromNib
{
...
    [commandInput becomeFirstResponder];
...开发者_如何学Python
}

works.


yes, use [textfield1 becomeFirstResponder]

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜