Re: Split Views
Re: Split Views
- Subject: Re: Split Views
- From: Andy Lee <email@hidden>
- Date: Sat, 27 Mar 2004 00:13:25 -0500
On Mar 26, 2004, at 11:56 PM, Seth Willits wrote:
Anyway, this question is: How do you use NSSplitView? Is it like a
groupbox type of thing where I put all of the views I want to split on
top of it and it figures out where to draw the thumbs, or is it the
thumb/pane itself? I tried adding a custom view and changing the class
to a NSSplitView in the nib but that didn't work. I see that there's a
"Make View Subclass of / Split View" menu item, but I can't seem to
ever get it enabled.
Do you mean the "Make subviews of" menu item? That's the simplest way
to introduce a splitview into your nib. The menu item should become
enabled if you select two or more views in a window. What it does is,
it creates a new splitview with the selected views as subviews.
*That's* when it figures out where to put the thumb, depending on
whether the views you chose were aligned vertically or side by side.
If you want to control the resizing behavior of the subviews, be sure
to look though NSSplitView's numerous delegate methods.
--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >Split Views (From: Seth Willits <email@hidden>) |