home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14735 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  1.6 KB

  1. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!usc!wupost!wuarchive.wustl.edu!hp48sx
  2. From: hp48sx@wupost.wustl.edu (HP48SX Archive Maintainer)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: HighLevel AE, CountAppFiles, drag-n-drop
  5. Date: 29 Aug 1992 18:43:23 -0500
  6. Organization: Washington University in Saint Louis, MO USA
  7. Lines: 23
  8. Message-ID: <hp48sx.715131202@wuarchive.wustl.edu>
  9. NNTP-Posting-Host: wuarchive.wustl.edu
  10.  
  11. I have a drag-n-drop application that currently uses CountAppFiles to
  12. determine how many files it receives on startup, and uses GetAppFiles to
  13. get them out. If there is no files opened at startup, then the program
  14. stays open. Otherwise it exits after processing the files.
  15.  
  16. I am now converting it to use HighLevel Apple events. My problem is that
  17. CountAppFiles does not work then. So I am going to call
  18. GetSpecificcHighLevelEvent to look for 'odoc' events in the queue.
  19. Can I do this before entering my event loop ? Or should I always process
  20. the OpenApplication event before processing other events ?
  21.  
  22. If I do background processing, will WaitNextEvent then return the next
  23. event every time ? Or will I get null-events ? If I do not want to
  24. process the next event in the queue because I am not done with the
  25. previous event, how do I then release CPU time to other jobs ? Is it
  26. necesary to parse the events all the time, and then make my own queue
  27. with all the info from the 'odoc' events to make it work as it should ?
  28.  
  29. -- 
  30. Povl H. Pedersen             hp48sx@wuarchive.wustl.edu
  31. HP48sx archive maintainer
  32.  
  33. All Opinions (C) Copyright the Intergalactic Thought Association
  34.