home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12852 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.7 KB  |  42 lines

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