home *** CD-ROM | disk | FTP | other *** search
- 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
- From: tjohnson@joule.elee.calpoly.edu (Todd Johnson)
- Newsgroups: comp.sys.mac.programmer
- Subject: idle events (System 6)
- Summary: How do I get regular idle events?
- Message-ID: <1993Jan04.225332.106279@zeus.calpoly.edu>
- Date: 4 Jan 93 22:53:32 GMT
- Sender: news@zeus.calpoly.edu
- Distribution: usa
- Organization: California Polytechnic State University, San Luis Obispo
- Lines: 24
-
-
- I'm a novice Mac programmer working on my first application. I've
- searched through the FAQ sheet and some of the archives, but I have
- yet find the answer to my problem. Here goes:
-
- I'm using Think C (version 5) on a Mac running System 7. My
- application works fine in this environment, but I need to get it
- to work under System 6 as well. (Sadly, not my choice.) Basically,
- I want to flash something in a window at regular intervals (paint
- it black, then white, etc.) Currently, I set gSleepTime to 0 and
- do my drawing during the idle event (Dawdle() message sent to the
- window's director). This allows the user to interrupt the program
- by selecting a menu item.
-
- The problem is that System 6 does not handle events the same
- way System 7 does, but I don't know specifically what the differ-
- ences are. My question is how to send myself messages at regular
- intervals while enabling the user to type and click.
-
- Any ideas or pointers to reference material would be greatly
- appreciated, inasmuch as I will soon become bald.
-
-
- Todd Johnson tjohnson@joule.elee.calpoly.edu
-