Article View: comp.sys.next.programmer
Article #1914How to make a window the key window
From: Chris Jackson IME
Date: Mon, 21 Dec 1992 12:39
Date: Mon, 21 Dec 1992 12:39
21 lines
1132 bytes
1132 bytes
How do I make a window the key and/or the main window ?
I have tried with a very simple application that
has a single window. When the application is invoked,
its window does not come to the front of the stack and
become the key window.
I have tried subclassing Object to produce, say, AppController.
I have made an instance of this the delegate of Application.
When this instance receives the 'appDidInit:' message,
I have tried sending the window a 'makeKeyAndOrderFront:'
message :
[ [NXApp mainWindow] makeKeyAndOrderFront: self ]
but this has no effect.
Can anyone help, please ?
Chris.
Technical Details
Message-ID:
<1992Dec21.123934.1056@rdg.dec.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!decuac!pa.dec.com!rdg.dec.com!uproar.enet.dec.com!jacksoncShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!decuac!pa.dec.com!rdg.dec.com!uproar.enet.dec.com!jacksonc From: jacksonc@uproar.enet.dec.com (Chris Jackson @ IME) Subject: How to make a window the key window Message-ID: <1992Dec21.123934.1056@rdg.dec.com> Lines: 21 Sender: news@rdg.dec.com (Mr News) Reply-To: jacksonc@uproar.enet.dec.com (Chris Jackson @ IME) Organization: Digital Equipment Service Industries Solutions Company Ltd Date: Mon, 21 Dec 1992 12:39:34 GMT