Re: missing cursor in Scott Anguish's HTMLEditor tutorial??
Re: missing cursor in Scott Anguish's HTMLEditor tutorial??
- Subject: Re: missing cursor in Scott Anguish's HTMLEditor tutorial??
- From: Oliver Chern <email@hidden>
- Date: Fri, 17 Aug 2001 18:23:45 -0400
I tried implementing what you suggested. I typed one additional line of
code.
[myTextView setFont:myFont];
[scrollView setDocumentView:myTextView];
[myWindow setContentView:scrollView];
[myTextView setSelectedRange:NSMakeRange(0, 0)]; **************
[myTextView release];
[scrollView release];
[[myTextView window] makeFirstResponder:myTextView];
Somehow I feel like I'm missing something very obvious here. Forgive me if
this is a stupid question. All input appreciated. :)
Oliver
>
From: Scott Anguish <email@hidden>
>
Date: Thu, 16 Aug 2001 18:36:08 -0400
>
To: Oliver Chern <email@hidden>
>
Cc: "email@hidden" <email@hidden>
>
Subject: Re: missing cursor in Scott Anguish's HTMLEditor tutorial??
>
>
You can overcome this by having setting the insertion point (the
>
selection) to a range of 0,0 in the
>
>
- (void)windowControllerDidLoadNib:(NSWindowController *) aController;
>
>
method in the NSDocument subclass
>
>
>
On Thursday, August 16, 2001, at 03:55 PM, Oliver Chern wrote:
>
>
> I set the NSTextField to be the FirstResponder, so when I start typing,
>
> the
>
> text automatically is inputted into my main document window. However,
>
> when I
>
> launch the application, I don't see the blinking cursor at the top left
>
> of
>
> the NSTextField that users are accustomed to in text editing apps.