home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!caen!batcomputer!cornell!csuley
- From: csuley@cs.cornell.edu (Christopher Suley)
- Subject: Re: Moving to the foreground after receiving an 'odoc' from the Finder
- Message-ID: <1992Jul22.185614.23793@cs.cornell.edu>
- Organization: Cornell Univ. CS Dept, Ithaca NY 14853
- References: <1992Jul20.195334.19197@newstand.syr.edu> <1992Jul21.174631.20664@cs.cornell.edu> <D88-JWA.92Jul21230642@dront.nada.kth.se>
- Date: Wed, 22 Jul 1992 18:56:14 GMT
- Lines: 31
-
- d88-jwa@dront.nada.kth.se (Jon W{tte) writes:
- >> I wrote:
- >
- > In _Macintosh Programming Secrets, 2e_, they call EventAvail 3 times when
- > the program starts up to bring it to the front. They say that this is the
- > "standard" way to bring a program to the front under MultiFinder.
- >
- >No, it's the standard way of bringing the app to the
- >front WHEN BEING LAUNCHED under MultiFinder. Big difference !
- >Calling EventAvail will NOT switch layers by itself.
- >
-
- Oops. My bad. I never did well in reading comprehension tests anyway. ;)
-
- I have a question. In _Inside Macintosh_, the Memory Manager chapter in
- Volume 2 I think, there is a warning that you shouldn't do anything to a
- handle unless the current zone is the one in which the handle resides.
-
- I have an application that reads the data out of a handle I store in the
- system heap. It's never had a problem (the data has always been correct),
- but now I'm concerned.
-
- It's not a big problem to add GetZone, SetZone( SystemZone() ) calls, but
- I was just wondering why that warning was there.
-
-
- --
- |}-{}-{}-{}-{}-{}-{}-{}-{}-{|
- {} Christopher S. Suley {} "do you expect me to talk?"
- {} csuley@cs.cornell.edu {} "no, mr. bond, i expect you to die."
- |}-{}-{}-{}-{}-{}-{}-{}-{}-{|
-