Article View: comp.sys.next.programmer
Article #472Changing contentView of a Box
From: pall kerchen
Date: Thu, 06 Aug 1992 19:50
Date: Thu, 06 Aug 1992 19:50
30 lines
1426 bytes
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 |
Technical Details
Message-ID:
<15980@ucdavis.ucdavis.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!ucbvax!ucdavis!fuji!kerchenShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!ucbvax!ucdavis!fuji!kerchen From: kerchen@fuji.cs.ucdavis.edu (pall kerchen) Newsgroups: comp.sys.next.programmer Subject: Changing contentView of a Box Message-ID: <15980@ucdavis.ucdavis.edu> Date: 6 Aug 92 19:50:11 GMT Sender: usenet@ucdavis.ucdavis.edu Organization: U.C. Davis, Computer Security Lab Lines: 30