Hi:
I have two simple views which are displayed in a window, the first one has a button with this action:
It works ok, but on the second view I have two textfields and I use this on init:
and myTextField doesnt appear selected, when I select it with the mouse I can edit it but , I can't move to the next textField using Tab on keyboard, I dont know wath I'm missing, please help.
I have two simple views which are displayed in a window, the first one has a button with this action:
Code:
-(void)botonSelector:(id)sender
{
SecondView *testview = [[SecondView alloc] initWithFrame:NSZeroRect];
[[self window] setContentView:testview];
[testview release];
}
It works ok, but on the second view I have two textfields and I use this on init:
Code:
[[self window] makeFirstResponder: myTextField];
and myTextField doesnt appear selected, when I select it with the mouse I can edit it but , I can't move to the next textField using Tab on keyboard, I dont know wath I'm missing, please help.