Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.