🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
1 messages
1 total messages Started by pall kerchen Thu, 06 Aug 1992 19:50
Changing contentView of a Box
#472
Author: pall kerchen
Date: Thu, 06 Aug 1992 19:50
30 lines
1426 bytes
Does anyone know how to change the contentView of a Box?  It seems 
like it should be really simple but I'm just not getting it.  Here's
what I'm doing:

- changeContentView:(int) someForm
{
	switch(someForm) {
		case 0:
			[myBox setContentView:[aForm contentView]];
			[myBox sizeToFit];
			break;
		default:
			[myBox setContentView:[anotherForm contentView]];
			[myBox sizeToFit];
	}
	return self;
}

setContentView is called with someForm set to the value of a two
button toggle.  It works once (i.e., anotherForm's contentView is
displaye in myBox) but after that there's no change regardless of the
position of the toggle.  Well, that's not exactly true: there's no
visible change, but if you click the mouse in myBox, fragments of
aForm 'peek' through, as if aForm is logically there but anotherForm
is being displayed.  What am I forgetting here?  BTW, I'm using R3.0
PR2.

   |          "Disembodied gutteral noise need not make sense"		  |
   |			           Paul Kerchen				  |
   |			  kerchen@fuji.cs.ucdavis.edu			  |
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads