Article View: comp.sys.next.programmer
Article #2214Re: InterfaceBuilder: No KeyAndOrderFront at app's startup??
From: slugg jello
Date: Thu, 07 Jan 1993 02:54
Date: Thu, 07 Jan 1993 02:54
20 lines
1355 bytes
1355 bytes
In article <1993Jan5.130920.29274@oce.nl> fjh@oce.nl (Erik Hommersom) writes: > Hi there, > > When I start an application, made with InterfaceBuilder in a Terminal, > it is not activated, but the Terminal application remains the active > application. > > Instead I would like to have MyApplication become active after it has been > launched from a Terminal, without having to click on one of its windows. > > The problem I have is that I cannot figure out where to call the method > "makeKeyAndOrderFront" if not in the main.m program generated by > InterfaceBuilder? The app's delegate receives appDidInit:. In that method you can call makeKeyAndOrderFront or activateSelf:. The owner of your main nib is usually of the class NXApp and is whose delegate outlet you must set. -- Doug Kent slugg@mouthers.wa.com
Technical Details
Message-ID:
<1993Jan7.025419.8279@mouthers.nwnexus.wa.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!gatech!destroyer!cs.ubc.ca!uw-beaver!uw-coco!nwnexus!mouthers!sluggReferences:
<1993Jan5.130920.29274@oce.nl>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!gatech!destroyer!cs.ubc.ca!uw-beaver!uw-coco!nwnexus!mouthers!slugg From: (slugg jello) Subject: Re: InterfaceBuilder: No KeyAndOrderFront at app's startup?? Message-ID: <1993Jan7.025419.8279@mouthers.nwnexus.wa.com> Sender: slugg@mouthers.nwnexus.wa.com Reply-To: slugg@mouthers.wa.com Organization: Mouthing Flowers References: <1993Jan5.130920.29274@oce.nl> Date: Thu, 7 Jan 1993 02:54:19 GMT Lines: 20