• 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
[COCOA] Placing an insertion thingy into a NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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.


  • Prev by Date: Re: Finding keyboard state in Cocoa(Ondra Cada)
  • Next by Date: Re:Modal run loop input sources (Mike Davis)
  • Previous by thread: Re: Finding keyboard state in Cocoa(Ondra Cada)
  • Next by thread: Re:Modal run loop input sources (Mike Davis)
  • Index(es):
    • Date
    • Thread