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