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]
精彩评论