Re: Request for Guidance
Re: Request for Guidance
- Subject: Re: Request for Guidance
- From: Kurt Revis <email@hidden>
- Date: Thu, 5 Sep 2002 05:16:21 -0700
On Thursday, September 5, 2002, at 04:45 AM, Terry_Smyth wrote:
The app is basically a configuration utility for viewing and changing
various bits of proprietary data (which is held in files, and accessed
independently by a separate tool). Because the data to be
configured/viewed falls neatly into a number of distinct categories,
it would seem nice to have a UI which is similar to the System
Preferences - ie a row of buttons, each of which swaps in a separate
configuration interface. This seems a logical choice to me, but feel
free to suggest alternatives.
My main question is what is the best way to implement this swapping of
panes? I'm thinking of having a number of overlayed NSViews (custom
view from IB pallette?), only one of which is visible at a time.
Clicking a button hides the current NSView and shows the requested one
(using removeFromSuperview and addSubview), with resizing of the main
window if required. Does this sound like a valid approach? Presumably
hiding an NSView also hides all its subviews?
This will work, but there is an easier way these days. Just use an
NSTabView, with one tab for each "pane", and set it to be tabless in
IB. Your buttons should send a message to some controller object,
which then tells the tab view which tab to display.
--
Kurt Revis
email@hidden
_______________________________________________
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.