home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21301 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  2.2 KB

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!olivea!apple!goofy!mumbo.apple.com!gallant.apple.com!athos.apple.com!user
  2. From: athos@apple.com (Rick Eames)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: TCL, MultiFinder, and Progress Dialogs
  5. Message-ID: <athos-120193094621@athos.apple.com>
  6. Date: 12 Jan 93 17:47:21 GMT
  7. References: <96290@rphroy.ph.gmr.com> <11JAN199316162844@comb1.comb.umd.edu> <1993Jan11.215603.26274@kth.se>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple Computer, Inc.
  11. Lines: 39
  12.  
  13. In article <1993Jan11.215603.26274@kth.se>, d88-jwa@byse.nada.kth.se (Jon
  14. Wtte) wrote:
  15.  
  16. > Actually, this is a bad thing to do to a TCL app; for instance
  17. > AppleEvents would be lost because they are ALWAYS delivered
  18. > regardless of event mask.
  19. > Instead, I usually put up a movable, modal dialog with the bar
  20. > etc, and when I need to give idle time, I do:
  21. >     gSleepTime = 0 ;
  22. >     gApplication -> Process1Event ( ) ;
  23. > If you can set up an Idle chore to do the idling, you could
  24. > even have your dialog be the supervisor of the chore and have
  25. > BeginDialog and EndDialog handle dialog ending.
  26. > So what does this do? Well, you can't call DoModalDialog if you
  27. > cannot push the thing you're doing into a chore; you'll have
  28. > to mimic the behaviour in your idle call. What remains is to
  29. > handle DoCommand ( cmdCancel ) by overriding it in the
  30. > CDLOGDirector.
  31.  
  32. The problem with this method is that your damned cursor ends up resetting
  33. to a pointer each time you Process1Event() so you have to override that too
  34. to ensure that your nice spinning cursor works.
  35.  
  36. ############################################################################
  37. Rick Eames                         Internet:      athos@apple.com
  38. Apple Computer, Inc.               CompuServe:    76666,2114
  39. My Opionions are my own.           AmericaOnline: EamesR
  40. "The Lord prefers common-looking people. That is why he makes so many of
  41. them."  - Lincoln
  42.  
  43. "But you know what?  There's another point that I'd like to make: it's very
  44. possible that Adolf Hitler kept a very nice check book.  You know?  I mean,
  45. and that's fine."  -- Barbara Boxer, Bill Press Show, KFI, 10/24/92
  46. ############################################################################
  47.