Moving An NSTableView From One View To Another
Moving An NSTableView From One View To Another
- Subject: Moving An NSTableView From One View To Another
- From: Luke Pike <email@hidden>
- Date: Mon, 15 Oct 2007 11:44:27 -0400
Hello all,
I am trying to move an NSTableView from a custom view into a window.
In IB, I dragged a CustomView into my nib file and added a bunch of
subviews to it. Then I used this code to add one of the subviews to
my window:
- (IBAction)addView:(id)sender
{
[[window contentView] addSubview:[myView viewWithTag:1]];
[[window contentView] display];
}
This works fine for text fields and buttons, but when it comes to a
tableview, it won't show it.
Does anyone know why this won't work? Thanks in advance.
- Luke
_______________________________________________
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