Place NSView into NSView
Place NSView into NSView
- Subject: Place NSView into NSView
- From: Lincoln Green <email@hidden>
- Date: Sat, 5 Apr 2008 18:47:35 -0500
Is there a way to place one NSView into another NSView? This is what I
have.
- (IBAction)setContent:(id)sender{
[firstView addSubview:secondView];
[secondView setFrame:[firstView frame]];
[secondView setFrameOrigin:NSMakePoint(0, 0)];
[secondView display];
}
However, it acts the same way as if I don't do anything. Any help is
greatly appreciated.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden