Re: NSSplitView with multiple dividers
Re: NSSplitView with multiple dividers
- Subject: Re: NSSplitView with multiple dividers
- From: Kyle Sluder <email@hidden>
- Date: Sun, 19 Sep 2010 12:01:25 -0700
On Sep 19, 2010, at 11:55 AM, "email@hidden" <email@hidden> wrote:
>
> On 19 Sep 2010, at 18:14, Geoffrey Holden wrote:
>
>> I am trying to set up a window with three resizable panes. Currently, I have done this by dragging an NSSplitView into my window (in IB) and then dragging another NSSplitView into that:
>>
>> +NSSplitView
>> |--+NSView
>> | '-NSTableView
>> |
>> |--+NSView
>> | '-NSSplitView
>> |
>>
> I too did exactly the same the first time I tried this. But the solution is much easier.
> In IB just draw another custom view onto the bottom or left edge of the NSSplitView.
> A red line will appear to indicate that you have hit the sweet spot.
> Drop the view and it will create another pane within the splitview.
>
It might be easier to drop the new view onto the split view in the document window (in tree mode).
NSSplitView puts splitters between all of its subviews. You only need to embed a split view in another if you want to have both vertical and horizontal splits.
--Kyle Sluder_______________________________________________
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