[COCOA] Placing an insertion thingy into a NSTextView
[COCOA] Placing an insertion thingy into a NSTextView
- Subject: [COCOA] Placing an insertion thingy into a NSTextView
- From: Andrew Hooke <email@hidden>
- Date: Tue, 28 Aug 2001 13:22:07 +1000
I'm a little stumped by something simple. I'm trying to place an
insertion point into a NSTextView in order to have it ready for
receiving typing. I have done the following to no success:
1) I control dragged from the Window instance to the NSTextView area
within that window and connected it to initialFirstResponder.
2) In the project I included the following in my Controller class
- (void)awakeFromNib
{
[ [ textView window ] makeKeyAndOrderFront:self ];
}
Where textView is the NSTextView outlet that I'm trying to insert the
insert character into. Any guesses where I'm making a mistake? Thanks,
Andrew.