• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Moving An NSTableView From One View To Another
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Moving An NSTableView From One View To Another
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: Trouble using createFileAtPath method to create file
  • Next by Date: Re: Moving An NSTableView From One View To Another
  • Previous by thread: Re: Simple dealloc question
  • Next by thread: Re: Moving An NSTableView From One View To Another
  • Index(es):
    • Date
    • Thread