Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7959849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:38:14+00:00 2026-06-04T04:38:14+00:00

What I need may be pretty basic, but I’m definitely not sure as to

  • 0

What I need may be pretty basic, but I’m definitely not sure as to how to proceed (I’ve done that before but none of my choices seem that Cocoa-friendly).

Ok, let’s say we’ve got 2 NSViews – one next to the other:

  • The one on the left serves as a menu.
  • The one on the right will show a NSView (from a different XIB perhaps?) depending on the selection on the menu.

GUI Outline

My questions :

  • How should I go about loading the different NSViews into the rightmost NSView?
  • How do I make sure that the subview (the one currently active) is properly resized when the window is resized?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:38:15+00:00Added an answer on June 4, 2026 at 4:38 am

    rdelmar’s solution should work, but another approach, which may be simpler, is to use an NSTabView to handle switching between the content views. You can hide NSTabView’s tabs using the settings pane in interface builder, or by calling [self.tabView setTabViewType:NSNoTabsNoBorder]. I’d probably use a table view for the left side. When the user selects a row, you do something like:

    -(void)tableViewSelectionDidChange:(NSNotification *)notification
    {
        [self.tabView selectTabViewItemAtIndex:[self.menuTableView selectedRow]];
    }
    

    The NSTabView can/will take care of properly resizing its content views as long as you’ve set up its and its content views’ autoresizing masks (springs and struts) properly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to define a Wix file component that may not exist in certain
This may be a basic question but I am pretty new to DDD. I
I think this may sound pretty simple, but still I can not get it
That title may need some work. Perhaps after reading this, you may be able
It may sound strange, but in my PHP application I need to check if
This may be a stupid question to ask, but still I need to know
Now this may seem like a silly question, but I need to know how
This may seem like a basic/stupid/obviously-answered question, but I wanted to check: why use
I'm pretty sure I'm doing something wrong, but I've simplified my example as much
I have not worked with XML much so this may be a basic question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.