• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Request for Guidance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Request for Guidance
      • From: Chris Giordano <email@hidden>
References: 
 >Request for Guidance (From: Terry_Smyth <email@hidden>)

  • Prev by Date: Re: Launching an App without NSWorkspace?
  • Next by Date: Re: textured windows
  • Previous by thread: Request for Guidance
  • Next by thread: Re: Request for Guidance
  • Index(es):
    • Date
    • Thread