ftp.nice.ch/peanuts/GeneralData/Usenet/news/1990/CSN-90.tar.gz#/comp-sys-next/1990/Apr/Making-a-TextField-become-the-firstResponder

This is Making-a-TextField-become-the-firstResponder in view mode; [Up]


Date: Sun 26-Apr-1990 17:58:12 From: shiffman@sumex-aim.stanford.edu (Smadar Shiffman) Subject: Making a TextField become the firstResponder I used the Interface Builder to created a window with a TextField (and some other things). I would like to set things up so that when the window is opened, the TextField object will receive keyboard events (without having to click on the TextField object first to make it the first responder). I tried making the TextField object the window's first responder programmatically but it didn't work. I also noted that when the TextField object is clicked, it is a Text object (probably the one used by the application to support all the TextField objects in the window) that becomes the windows first responder, and not the TextField itself. Does anyone have an idea how I could get the TextField to receive keyboard events without clicking on it first? Thanks, Smadar -------

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.