home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: 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
-
-
- 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.
-