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 6982853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:20:35+00:00 2026-05-27T18:20:35+00:00

let me introduce. I’m an enthusiast programmer (not professional) with c, c++, java experience

  • 0

let me introduce. I’m an enthusiast programmer (not professional) with c, c++, java experience and now starting with Objective-C and Cocoa on MacOsx.

In my first program I would like to create two vertical-splitted views, having the left one (main) always-on and the right one to show/hide as per button press (its use will be for debugging output).

I’ve seen exactly what I want under Xcode 4.2 where we can Hide/Show navigator/debug/utilities. I’m looking for the “utilities” behavior, that’s exactly what I want. The usage of that vertical view is to output “debugging” text from my program, I’m thinking on using the NSTextView in a NSScrollView to simulate a “Console”. I know I can just use a Terminal or the Debug view of Xcode, and that’s what is working now. I need this just for learning how to do it and to improve my program.

I’ve google a lot and read similar request but I couldn’t find exactly how to do this one.

Thanks in advance for your help.

Luis

  • 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-05-27T18:20:35+00:00Added an answer on May 27, 2026 at 6:20 pm

    A very rough idea. Change the width of the view with setPosition:ofDividerAtIndex:
    setPosition:(CGFloat)position ofDividerAtIndex:(NSInteger)dividerIndex

    Declare a CGFloat splitterlength.

    And Put this in applicationDidFinishLaunching.

        splitterlength  = splitView.bounds.size.width;
    [splitView setPosition:splitterlength ofDividerAtIndex:0];
    

    Then use this Action

         - (IBAction)moveSplitter:(id)sender {
    
        NSArray *splitterViews =splitView.subviews;
       CGFloat splitterCheckLength =[[splitterViews objectAtIndex:0]bounds].size.width;
        CGFloat openSplitter=splitterlength/2;
    
        if (splitterCheckLength ==openSplitter) {
          [splitView setPosition:splitterlength ofDividerAtIndex:0];
        }else {
            [splitView setPosition:openSplitter ofDividerAtIndex:0];
        }
    
    
    
    
    }
    

    Use what ever length you want.

    Saying this though. I would use normal customViews and adjust them. That way I do not have to worry about the dragging of the splitter by the user.

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

Sidebar

Related Questions

let me introduce my story first. To develop a multiplayer network game in facebook,
First let me introduce the application scene: I have a service application which is
First let me introduce implementation without Dependency Injection (which will break Dependency Inversion Principle):
I read this post about contravariance: Let's now introduce another wildcard: ? super .
Let's say I have an array of zeros: a = numpy.zeros(1000) I then introduce
Firstly, let me introduce general architecture of a project. It is hierarchical. We develop
First let me just state that coding without unit testing is just plain crazy.
Let me introduce another of IE's tricks! Today, to my surprise I have the
Let's assume we have X applications – one 'master' and 2+ 'slaves'. Now, slaves
Let me quickly introduce myself: over 30 years of programming in general, over 12

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.