Re: Switching NSBox out?
Re: Switching NSBox out?
- Subject: Re: Switching NSBox out?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sat, 27 Dec 2003 20:08:15 +0100
At 11:05 Uhr -0500 27.12.2003, T Reaves wrote:
So I need to know, where do I create the two NSBox objects?
Look in interface builder's palette. You can create what's called a
"group box", i.e. one of those grey boxes with a title. That's an
NSBox. You can switch off the color and title in the inspector for
that view.
It seems
I can not just add an NSBox to the nib file Instances tab.
Why would you? It's a view, and as all views, those are created by
dragging things into your window from the inspector. If you want to
swap them out, create an NSView and put it in there. (You may have to
create a new drawer, then delete everything except the NSView to do
that)
Then, how
do I switch out the box in the split view?
"switch out" how? If you mean replace one NSBox with the other, you
simply use one of the NSView methods that let you remove a view from
its superview, or add subviews to the window's content view (or to
the split view, or whatever).
However, in most cases you're probably easier off by just creating
an NSTabView to hold both of these views, and then change the current
tab to show the view you want. (You'll be especially interested in
the options in NSTabView's inspector that let you turn off the tabs
and the border of the tab view, which make it completely invisible)
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.