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

  1. Path: sparky!uunet!wupost!gumby!destroyer!cs.ubc.ca!bcsystems!cconstantine
  2. From: cconstantine@galaxy.gov.bc.ca
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: System 6-7 code & SourceBug?? Help?
  5. Message-ID: <1992Nov19.073508.1248@galaxy.gov.bc.ca>
  6. Date: 19 Nov 92 07:35:07 -0800
  7. Organization: BC Systems Corporation
  8. Lines: 31
  9.  
  10. Here is an interesting question.  I have a shell program that I am writing. 
  11. Under System 6.0.x, I run the program and go to the file menu and pull down to
  12. NEW for a new window (or cmd-n form the keyboard).  Under System 7, I run my
  13. app and it comes up with the new window right away????!!!
  14.  
  15. I looked at the code in SourceBug 1.0.1 (more on this later) and found that
  16. after calling the following function:
  17.  
  18. for (count=1; count<=3;count++)
  19.     EventAvail(EveryEvent,&event)
  20.  
  21. I have an AppleEvent waiting that gets processed by AEProcessEvent in my
  22. DoEvent loop.  This somehow opens the window upon startup???!!!!  Before
  23. calling EventAvail, I have a call to FlushEvents.
  24.  
  25. is there a particular reason for this happening????
  26.  
  27.  
  28. Also, How come on SourceBug, I cant step through the for loop above.  I hit the
  29. for ... and look at my count variable to notice that it is 1 and step again to
  30. the EventAvail and all of a sudden, it has done all 3 implementations and count
  31. is now 4 and I cant watch it change with the events to see what kind of events
  32. i'm getting.  Is there some way around this??  I like to watch my variables
  33. each time through the loop, not just once!!!!!!!
  34.  
  35. Thanx in advance.
  36.  
  37. -- 
  38. Carl B. Constantine
  39. CCONSTANTINE@galaxy.gov.bc.ca
  40.     "Opinions are mine only!!"
  41.