[comp.sys.mac.programmer] how big "Sleep" param in WaitNextEvent?

johnsone@uxh.cso.uiuc.edu (Erik A. Johnson) (03/01/91)

I was wondering what "sleep" values most people send to WaitNextEvent?

I have perused Apple's _Programmer's_Guide_To_Multifinder_ and seen the
example program there (which sets the sleep parameter to MAXLONG (is that
0xffffffff?) unless the application is in the foreground and its frontmost
window has a TextEdit record that needs to flash a caret, in which case the
value returned by GetCaretTime() is used).

Any suggestions?  Please e-mail responses and I'll post a summary.  Thanks


Erik A. Johnson, Graduate Student        \ Internet:  johnsone@uxh.cso.uiuc.edu
Aeronautical & Astronautical Engineering  \
University of Illinois at Urbana-Champaign \ AmericaOnline: ErikAJ

   +----------------------------------------------------------------------+
   | As far as Saddam Hussein being a great military strategist ... he is |
   | neither a strategist, nor is he schooled in the operational art, nor |
   | is he a tactician, nor is he a general, nor is he a soldier.  Other  |
   | than that, he's a great military man.                                |
   |            --- General Norman Schwarzkopf, Commander of Desert Storm |
   +----------------------------------------------------------------------+