• 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
Typing in Dialog -> set a "default" text field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Typing in Dialog -> set a "default" text field


  • Subject: Typing in Dialog -> set a "default" text field
  • From: Max Horn <email@hidden>
  • Date: Fri, 18 May 2001 08:30:34 +0200

Hi there,

I have a "dialog" window here, with a non-editable NSTextView, another non-editable NSTextField, some buttons, and finally a single editable NSTextField.

Now, it is possible for the user to click somewhere, which "deselects" (i.e. unfocuses) the NSTextField. Also, pressing Tab makes it loose focus, too.


Now, when the user types something, it appears nowhere! In this particula case it is very annoying; everybody tring it so far expects the typed chars to appear in the NSTextField.


My question: is there anything I can do to achieve this behaviour? Should I add code to the NSWindow that checks for key presses, and then redirects them to the NSTextField? Or what else could/should I do?



Thanx!


Max


  • Prev by Date: Re: EOF (was Re: Cocoa CGI)
  • Next by Date: Error codes?
  • Previous by thread: Re: File/bundle Question
  • Next by thread: Error codes?
  • Index(es):
    • Date
    • Thread