home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5279 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.6 KB  |  41 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!psinntp!svc!news
  3. From: moose@svcdudes.com
  4. Subject: Re: Destroying Zones
  5. Message-ID: <1992Jul27.164851.28178@svcdudes.com>
  6. Sender: news@svcdudes.com
  7. Reply-To: moose@svcdudes.com
  8. Organization: Software Ventures, Inc.
  9. References: <1992Jul27.010436.1749@kakwa.ucs.ualberta.ca>
  10. Distribution: na
  11. Date: Mon, 27 Jul 92 16:48:51 GMT
  12. Lines: 27
  13.  
  14. In article <1992Jul27.010436.1749@kakwa.ucs.ualberta.ca>  
  15. gary@niagara.ucs.ualberta.ca (Gary Ritchie) writes:
  16. > I'm loading a nib file into its own zone, so that I can later destroy the  
  17. > zone and make everything go away.  I'm having a problem because the nib  
  18. > file contains Windows, and the program has a segmentation fault shortly  
  19. > after the zone is destroyed.
  20. > I remember glancing at an article in the spring NeXTworld magazine which  
  21. > discussed how to deal with freeing zones which contain Windows, but I  
  22. > don't have access to that particular issue anymore.
  23. > Could someone give me a quick summary on the steps necessary?
  24.  
  25. Grab the entire window list and iterate through it.  You can find all the  
  26. windows you want by doing a [[windowList objectAt:count] zone] == ZoneToDie.
  27.  
  28. Something to note, though, NeXT puts icons and sounds in whatever zone was  
  29. active when the tiff was loaded.  But future loadings will not reload the tiff,  
  30. but point to the already existing tiff.  Therefore, if you kill a zone, you  
  31. will kill tiffs that other zones point into.
  32.  
  33.  
  34. --
  35. Michael Rutman            |    moose@svcdudes.com
  36. Cubist                |    makes me a NeXT programmer
  37. Software Ventures        |    maker of MicroPhone II
  38. #include <std.disclaimer>
  39.