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

  1. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!olivea!charnel!rat!zeus!joule.elee.calpoly.edu!tjohnson
  2. From: tjohnson@joule.elee.calpoly.edu (Todd Johnson)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: idle events (System 6)
  5. Summary: How do I get regular idle events?
  6. Message-ID: <1993Jan04.225332.106279@zeus.calpoly.edu>
  7. Date: 4 Jan 93 22:53:32 GMT
  8. Sender: news@zeus.calpoly.edu
  9. Distribution: usa
  10. Organization: California Polytechnic State University, San Luis Obispo
  11. Lines: 24
  12.  
  13.  
  14.   I'm a novice Mac programmer working on my first application. I've
  15. searched through the FAQ sheet and some of the archives, but I have
  16. yet find the answer to my problem. Here goes:
  17.  
  18.   I'm using Think C (version 5) on a Mac running System 7. My 
  19. application works fine in this environment, but I need to get it
  20. to work under System 6 as well. (Sadly, not my choice.) Basically,
  21. I want to flash something in a window at regular intervals (paint
  22. it black, then white, etc.) Currently, I set gSleepTime to 0 and
  23. do my drawing during the idle event (Dawdle() message sent to the
  24. window's director). This allows the user to interrupt the program
  25. by selecting a menu item.
  26.  
  27.   The problem is that System 6 does not handle events the same
  28. way System 7 does, but I don't know specifically what the differ-
  29. ences are. My question is how to send myself messages at regular
  30. intervals while enabling the user to type and click.
  31.  
  32.   Any ideas or pointers to reference material would be greatly
  33. appreciated, inasmuch as I will soon become bald.
  34.  
  35.  
  36. Todd Johnson              tjohnson@joule.elee.calpoly.edu
  37.