• 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
Default Input Field - force NSTextEditField to stay firstResponder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Default Input Field - force NSTextEditField to stay firstResponder


  • Subject: Default Input Field - force NSTextEditField to stay firstResponder
  • From: Max Horn <email@hidden>
  • Date: Wed, 30 May 2001 15:19:52 +0200

Is there a way I can enforce that all typing done in my dialog is going to the (single editable) NSTextFieldView in my NSWindow?


In particular, I have a (group)chat dialog. There is big view for the talk going on, and one NSTextField where you type in your text. There are also some other items, none of which can have the focus. In fact, only the text field can have the focus, but it still can loose it, e.g. when the user selects some text in the big text view, to copy it...

Now, if that happens, and then the user types something, nothing happens at all (not even the beep I'd expect).
But everyone I talked to so far expected the text to go straight to the NSTextField...


Any clue how I could enforce that? I tried to hook into the NSResponder chain, but with no success so far...


Thanx,

Max


  • Prev by Date: Re: Showing the shared NSColorPanel?
  • Next by Date: RE: Simple Port Traffic?
  • Previous by thread: Manual event handling
  • Next by thread: Cocoa for "platform independence"???
  • Index(es):
    • Date
    • Thread