home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / programm / 8016 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!gatech!destroyer!cs.ubc.ca!uw-beaver!uw-coco!nwnexus!mouthers!slugg
  3. From:  (slugg jello)
  4. Subject: Re: InterfaceBuilder: No KeyAndOrderFront at app's startup??
  5. Message-ID: <1993Jan7.025419.8279@mouthers.nwnexus.wa.com>
  6. Sender: slugg@mouthers.nwnexus.wa.com
  7. Reply-To: slugg@mouthers.wa.com
  8. Organization: Mouthing Flowers
  9. References: <1993Jan5.130920.29274@oce.nl>
  10. Date: Thu, 7 Jan 1993 02:54:19 GMT
  11. Lines: 20
  12.  
  13. In article <1993Jan5.130920.29274@oce.nl> fjh@oce.nl (Erik Hommersom) writes:
  14. > Hi there,
  15. > When I start an application, made with InterfaceBuilder in a Terminal, 
  16. > it is not activated, but the Terminal application remains the active
  17. > application. 
  18. > Instead I would like to have MyApplication become active after it has been
  19. > launched from a Terminal, without having to click on one of its windows. 
  20. > The problem I have is that I cannot figure out where to call the method
  21. > "makeKeyAndOrderFront" if not in the main.m program generated by
  22. > InterfaceBuilder?
  23.  
  24. The app's delegate receives appDidInit:.  In that method you can call  
  25. makeKeyAndOrderFront or activateSelf:.  The owner of your main nib is usually  
  26. of the class NXApp and is whose delegate outlet you must set.
  27. -- 
  28. Doug Kent
  29. slugg@mouthers.wa.com
  30.