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