home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / programm / 7698 < prev    next >
Encoding:
Text File  |  1992-12-12  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!uchinews!machine!gagme!datec
  3. From: datec@gagme.chi.il.us (Charles Robinson)
  4. Subject: Archiving Windows Query
  5. Message-ID: <1992Dec12.042351.7485@serveme.chi.il.us>
  6. Sender: usenet@serveme.chi.il.us
  7. Organization: GAGME - Public Access UNIX of Chicago, Illinois, USA, Earth
  8. X-Newsreader: TIN [version 1.1 PL7]
  9. Date: Sat, 12 Dec 1992 04:23:51 GMT
  10. Lines: 15
  11.  
  12. I seem to have a misunderstanding on the proper -write and -read methods
  13. when desiring to save and restore a window with a scrolling view.
  14. If I have a scrolling view (as in the example from ScrollDoodScroll)
  15. I seem to have to do something like the following:
  16.  
  17. In the -write method explicitly write out the window's content view as well
  18. as the window itself.
  19.  
  20. In the -read or -awake method explicity reset the content view ala
  21.     [mywindow setContentView:savedContentView]
  22.  
  23. Using gdb I noted that before the setContentView call in -read, the address of
  24. the window's content view and my restored content view were not the same.
  25. But, I thought that saving the window saved ALL its views. I am obviously
  26. missing something. I am using the above kludge work around but ...
  27.