Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > NSSplitView in Interface Builder

NSSplitView in Interface Builder
Thread Tools
Forum Regular
Join Date: Jul 2002
Location: Australia
Status: Offline
Reply With Quote
Jan 17, 2003, 07:01 AM
 
I'm trying to use an NSSplitView, and have had no luck finding an interface builder palette for it, and it doesn't seem to be built in. I can of course just add an NSView and set it to be an NSSplitView, but then I can't set any of it's parameters within IB.

However, I had a look at the NIBs for a couple of programs that use the split views, and they seem to have all the controls in Interface Builder for them - how can I do this?
     
Forum Regular
Join Date: Jul 2002
Location: Australia
Status: Offline
Reply With Quote
Jan 17, 2003, 08:06 AM
 
Well, I found the answer. For anyone who's interested:

http://groups.google.com.au/groups?q...com&rnum=3

>
> Hi all.. I'm playing around with cocoa and am wondering how to go about making a single window
> that is split vertically in two with a slider to resize either half of the window -- much like
> the project builder has but without the tabs. I've got 2 different cocoa books and didn't find
> anything much in regards to what I want to do.
>
> Any comments?

See the docs on the NSSplitView class.

In the interface builder, you can select any two views, and pick
Layout->Make Subviews Of->SplitView from the main menu.
     
Mac Elite
Join Date: Sep 2000
Location: Norfolk, Va
Status: Offline
Reply With Quote
Jan 18, 2003, 01:09 AM
 
just for posterity...

I usually drag a custom view from the palette, then in the "custom class" dropdown in the inspector select NSSplitView for it. drag two views into the splitview, and you're set. They will automaticaly size themselves when the app is run.
you are not your signature
     
Mac Elite
Join Date: May 2002
Location: New York City
Status: Offline
Reply With Quote
Jan 18, 2003, 08:12 AM
 
nevermind
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2