home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / mac / programm / 20211 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.5 KB

  1. Path: sparky!uunet!paladin.american.edu!gatech!swrinde!zaphod.mps.ohio-state.edu!usc!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!kth.se!hemul.nada.kth.se!d88-jwa
  2. From: d88-jwa@hemul.nada.kth.se (Jon Wtte)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: TCL, Another Question...
  5. Message-ID: <1992Dec22.210145.28421@kth.se>
  6. Date: 22 Dec 92 21:01:45 GMT
  7. References: <1992Dec22.184643.29251@fsl.noaa.gov>
  8. Sender: usenet@kth.se (Usenet)
  9. Organization: Royal Institute of Technology, Stockholm, Sweden
  10. Lines: 26
  11. Nntp-Posting-Host: hemul.nada.kth.se
  12.  
  13. In <1992Dec22.184643.29251@fsl.noaa.gov> urban@yoda.fsl.noaa.gov (Art Urban) writes:
  14.  
  15. >However, I would like to display a "startup" window while the application
  16. >loads, and preps. My question is: where is the best place to implement this
  17. >behavior?
  18.  
  19. I wouldn't use a TCL window, since they require the Desktop to be
  20. initialized, etc etc. Instead I would put up a "normal" window
  21. after calling EventAvail three times, and draw my picture in that,
  22. RIGHT after initting the toolbox. Then I would override Run so
  23. it first removed the window (or waited until N ticks had passed
  24. by calling EventAvail and checking the event.when field) and
  25. then called CApplication :: Run.
  26.  
  27. Or I would patch DoAppleEvent so that an oapp AppleEvent sent a
  28. cmdAbout instead of opening a new window :-)
  29.  
  30. Cheers,
  31.  
  32.                                 / h+
  33.  
  34. -- 
  35.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  36.    The word "politics" is derived from the word "poly", meaning
  37.    "many", and the word "ticks", meaning "blood sucking parasites".
  38.                      -- Larry Hardiman
  39.