ftp.nice.ch/peanuts/GeneralData/Usenet/news/1989/CSN-89.tar.gz#/comp-sys-next/1989/Jan-Apr/hint:-scrolling-text-windows

This is hint:-scrolling-text-windows in view mode; [Up]


Date: Sun 22-Feb-1989 21:56:40 From: Unknown Subject: hint: scrolling text windows Suppose you want to have a scrolling text window in the application you're building. Well, IB makes that simple; you make a window, put a scrolling text view inside of it, and make that view fill the window. However, you'll discover that if you resize that window in your application the view doesn't resize. This is because the scrolling text view is a subview of the content view and size changes aren't passed to subviews by default. You can either write the code to pass down the resizing by hand, or you can make the scrolling text view be the content view. Suppose you have a socket from that scrolling text view (presumably because you want to note it down someplace). You might write the method for this socket as something like: - setmyText:anObject { /* make it be the window's content view, so resizing the window resizes the view */ [[anObject window] setContentView:anObject]; myText = [anObject docView]; /* note its docView for use later */ return self; /* standard return */ } >From: mrc@Tomobiki-Cho.CAC.Washington.EDU (Mark Crispin)

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.