NSSplitView

  • How does one make a connected horiz-vert split view like in Xcode,
    you know,  one control point to size in both directions?

    HNY cocoa heads!

    David Blanton
  • If you're looking at the same split view as I am (main window), it
    appears that they're just using a horizontal split view as the right
    subview in a vertical split view. There doesn't seem to be a resize
    handle that adjusts both directions.

    On 31-Dec-08, at 5:22 PM, David Blanton wrote:

    > How does one make a connected horiz-vert split view like in Xcode,
    > you know,  one control point to size in both directions?
    >
    > HNY cocoa heads!
    >
    >
    >
    >
    > David Blanton
  • In Xcode 2.4.1 , debug view, all in one, the stack and vars are
    split, and below is source and there is one control point that moves
    the vert and horiz splitters

    Some Apple magic perhaps?

    On Dec 31, 2008, at 3:49 PM, Brandon Walkin wrote:

    > If you're looking at the same split view as I am (main window), it
    > appears that they're just using a horizontal split view as the
    > right subview in a vertical split view. There doesn't seem to be a
    > resize handle that adjusts both directions.
    >
    > On 31-Dec-08, at 5:22 PM, David Blanton wrote:
    >
    >> How does one make a connected horiz-vert split view like in Xcode,
    >> you know,  one control point to size in both directions?
    >>
    >> HNY cocoa heads!
    >>
    >>
    >>
    >>
    >> David Blanton
    >
    >
    >

    David Blanton
  • On 31 Dec 2008, at 22:53:46, David Blanton wrote:

    > In Xcode 2.4.1 , debug view, all in one, the stack and vars are
    > split, and below is source and there is one control point that moves
    > the vert and horiz splitters
    >
    > Some Apple magic perhaps?

    I think posting a screenshot on the web would help those of us who do
    not have access to Xcode 2.4.1 right now.
  • On Dec 31, 2008, at 9:07 PM, Benjamin Dobson wrote:

    > On 31 Dec 2008, at 22:53:46, David Blanton wrote:
    >
    >> In Xcode 2.4.1 , debug view, all in one, the stack and vars are
    >> split, and below is source and there is one control point that
    >> moves the vert and horiz splitters
    >>
    >> Some Apple magic perhaps?
    >
    > I think posting a screenshot on the web would help those of us who
    > do not have access to Xcode 2.4.1 right now.

    3.1.2 behaves the same way, so I'd assume the in-between versions
    (2.5, 3.0, etc.) do also.

    I doubt that it's some undocumented "magic" in the standard
    NSSplitView though - more likely just a custom control that was
    created by the Xcode dev team. Oddly, it's only used in the Debug
    view. Not in the Project view, nor in the docs viewer, despite both of
    those windows having similar three-pane arrangements.

    sherm--
  • At 14:51 -0800 31/12/08, <cocoa-dev-request...> wrote:
    > From: David Blanton <airedale...>
    > Date: Wed, 31 Dec 2008 15:22:49 -0700
    > Message-ID: <B7A7547F-E5AB-437F-8CA8-F62FABA057BA...>
    >
    > How does one make a connected horiz-vert split view like in Xcode, you know,  one control point to size in both directions?

    RBSplitView does that automagically if you nest two of them:
    http://www.brockerhoff.net/src/rbs.html

    I really must find time to update it, but people tell me it still works well.

    HTH,
    --
    Rainer Brockerhoff  <rainer...>
    Belo Horizonte, Brazil
    "In the affairs of others even fools are wise
    In their own business even sages err."
    Weblog: http://www.brockerhoff.net/bb/viewtopic.php
  • Ok, I will look at RBSplitView.  Thanks!

    On Jan 1, 2009, at 5:37 AM, Rainer Brockerhoff wrote:

    > At 14:51 -0800 31/12/08, <cocoa-dev-request...> wrote:
    >> From: David Blanton <airedale...>
    >> Date: Wed, 31 Dec 2008 15:22:49 -0700
    >> Message-ID: <B7A7547F-E5AB-437F-8CA8-F62FABA057BA...>
    >>
    >> How does one make a connected horiz-vert split view like in Xcode,
    >> you know,  one control point to size in both directions?
    >
    > RBSplitView does that automagically if you nest two of them:
    > http://www.brockerhoff.net/src/rbs.html
    >
    > I really must find time to update it, but people tell me it still
    > works well.
    >
    > HTH,
    > --
    > Rainer Brockerhoff  <rainer...>
    > Belo Horizonte, Brazil
    > "In the affairs of others even fools are wise
    > In their own business even sages err."
    > Weblog: http://www.brockerhoff.net/bb/viewtopic.php
    >
    >

    David Blanton