Input in TextView
Input in TextView
- Subject: Input in TextView
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 28 Dec 2001 12:03:25 +0100
I have a Document based Application, where a document has a window with
a ScrollView with a MyTextView.
The initialFirstResponder is theText, which is the MyTextView inside the
ScrollView.
When I make "new" I get a new window with an empty text, but I cannot
type. I have to click inside the window, then I can start typing.
I tried (in windowControllerDidLoadNib:)
[ [ theText window ] makeKeyAndOrderFront: self ] ;
[ theText setSelectedRange: NSMakeRange(0,0) ];
this makes the window main and key, and initialFirstResponder is
theText, but still I cannot type without first clicking the window.
What can I do?
Gerriet.