• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: missing cursor in Scott Anguish's HTMLEditor tutorial??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: missing cursor in Scott Anguish's HTMLEditor tutorial?? (From: Scott Anguish <email@hidden>)

  • Prev by Date: NSConditionLock question
  • Next by Date: Re: Making help indexing work
  • Previous by thread: Re: missing cursor in Scott Anguish's HTMLEditor tutorial??
  • Next by thread: How to debug a "preference" application
  • Index(es):
    • Date
    • Thread