• 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
Re: IB: Inserting a parent item in a splitview pane?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB: Inserting a parent item in a splitview pane?


  • Subject: Re: IB: Inserting a parent item in a splitview pane?
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Thu, 03 Jul 2008 10:41:47 -0700

On Thursday, July 03, 2008, at 10:17AM, "Jens Alfke" <email@hidden> wrote:
>Every once in a while I run into the following frustrating situation
>in IB: I have a UI with an NSSplitView, and one of the panes is a
>content view like an NSTableView. I later decide that I need to add
>another view inside that pane, like a button or a label. But I can't
>find a way to do this. There'd have to be a container view in the
>hierarchy between the splitview and the tableview, to add the new view
>as a child of, but there's no command to do this.
>
>The only workaround I've found is to use Unembed Objects to get rid of
>the splitview, then add the button, embed it and the table in a
>customview or box, then use Embed Objects again to recreate the
>splitview. But this is kludgey and tends to mess up the layout. There
>must be a better way?

I think you might be able to do it by expanding the outline view of the hierarchy and dragging objects around, but I've had mixed results with that method.  I typically end up either unembedding (which screws up the layout as you say) or creating enough outlets in the hierarchy to add/replace views in code.  Code is actually my default approach for messing with stuff like this nib:
https://bibdesk.svn.sourceforge.net/svnroot/bibdesk/trunk/bibdesk/English.lproj/BibDocument.nib
since I don't even know how to reassemble that monster after unembedding and adding a subview.  So if you find out a good way to do this, please post it!

thanks,
Adam
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >IB: Inserting a parent item in a splitview pane? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: IB: Inserting a parent item in a splitview pane?
  • Next by Date: Re: Interesting preprocessor code behavior
  • Previous by thread: Re: IB: Inserting a parent item in a splitview pane?
  • Next by thread: Reordering Tabs with IB 3.0
  • Index(es):
    • Date
    • Thread