Article View: comp.sys.next.programmer
Article #2023Archiving Windows Query
From: Charles Robinson
Date: Sat, 12 Dec 1992 04:23
Date: Sat, 12 Dec 1992 04:23
15 lines
1200 bytes
1200 bytes
I seem to have a misunderstanding on the proper -write and -read methods when desiring to save and restore a window with a scrolling view. If I have a scrolling view (as in the example from ScrollDoodScroll) I seem to have to do something like the following: In the -write method explicitly write out the window's content view as well as the window itself. In the -read or -awake method explicity reset the content view ala [mywindow setContentView:savedContentView] Using gdb I noted that before the setContentView call in -read, the address of the window's content view and my restored content view were not the same. But, I thought that saving the window saved ALL its views. I am obviously missing something. I am using the above kludge work around but ...
Technical Details
Message-ID:
<1992Dec12.042351.7485@serveme.chi.il.us>Path:
arc1-ca.pugleaf.net!sparky!uunet!uchinews!machine!gagme!datecShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!uchinews!machine!gagme!datec From: datec@gagme.chi.il.us (Charles Robinson) Subject: Archiving Windows Query Message-ID: <1992Dec12.042351.7485@serveme.chi.il.us> Sender: usenet@serveme.chi.il.us Organization: GAGME - Public Access UNIX of Chicago, Illinois, USA, Earth X-Newsreader: TIN [version 1.1 PL7] Date: Sat, 12 Dec 1992 04:23:51 GMT Lines: 15