I'm not quite sure I understand your question, but I assume you added the text field to the window in your code, not in IB.
Can you click in the text field and then type in it?
If so, then it sounds like you just need to set the FirstResponder to the text field so the focus initially goes there.
If not, then I think you need to provide more details on how you are reading the text input and how you added the text field.