Questions tagged [nssplitview]

An NSSplitView object stacks several subviews within one view so that the user can change their relative sizes. By default, the split bars between the views are horizontal, so the views are one on top of the other.

An NSSplitView object stacks several subviews within one view so that the user can change their relative sizes. By default, the split bars between the views are horizontal, so the views are one on top of the other.

Divider indices are zero-based, with the topmost (in horizontal split views) or leftmost (vertical) divider having an index of 0.

The NSSplitViewDelegate protocol defines the optional methods implemented by delegates of NSSplitView objects.

158 questions
1
vote
2 answers

Programmatically toggle resize of NSSplitViewItems

I am trying to find a way to programmatically resize NSSplitViewItems. Say the NSWindow frame size is 500x500px. masterViewItem has a width of 100px, while subViewItem has a width of 400px. When FOO, I want masterViewItem to collapse to 0px (towards…
Naoto Ida
  • 1,275
  • 1
  • 14
  • 29
1
vote
1 answer

Moving the splitter of a nested NSSplitView makes it grow outwardly

Nesting NSSplitView instances leads to a strange behavior. When dragging the nested splitView's splitter, the parent splitView's splitter can be moved to accomodate a larger child as a side-effect of the dragging. Here is an URL to a minimalist…
Dalzhim
  • 1,970
  • 1
  • 17
  • 34
1
vote
1 answer

NSSplitViewItem does not display like it designed in IB

I created a new empty Xcode project. And just added a NSSplitViewController to storyboard like below. And I ran the application, found out that the main window looked like below. The left split view was collapsed by default. I hoped it should be…
morphinewan
  • 434
  • 2
  • 6
  • 17
1
vote
2 answers

NSSplitView: Divider Thickness changes during drag on retina screens

Context I have an NSSplitView in my app that has 3 panes. I've subclassed NSSplitView and it has a single override: -(CGFloat) dividerThickness { return 1.0f; } I have disabled ALL the delegate methods that constrain divider min/max points and…
Bryan
  • 4,628
  • 3
  • 36
  • 62
1
vote
1 answer

NSTextField stops resizing when not editable

I currently have a split view and when i resize the app window i want only the right subview to get larger (so left stays exactly the same size). I have a nstextfield in the right subview where i can type stuff in. However, in certain circumstances…
CoderNinja
  • 571
  • 3
  • 7
  • 20
1
vote
1 answer

NSSplitView Holding Priorities not shown in IB, why?

I am puzzled and could swear I set my NSSplitView holding priorities in IB some days ago, but now they don't seem to be visible in IB at all. Does anyone else see holding priorities in the top left of Xcode's IB when the splitView is selected ?
Duncan Groenewald
  • 8,496
  • 6
  • 41
  • 76
1
vote
2 answers

Finder Style NSSplitVIew - Resize only right panel on Window Resize

i have a Vertical NSSplitView on my ViewController i set a Width constraint of >=200 for the left controller. This works in the sense that it won't let me size it less than two hundred. However if i expand the form it changes the size of both the…
eleethesontai
  • 454
  • 5
  • 19
1
vote
0 answers

NSSplitView xcode like fixed size headers

I want to have 2 subviews in the splitter and a header for each subview on top of it. something like XCode's utilities side bar I need to move 2 splitters togather so the middle subview (header) have a fixed height
Penman
  • 71
  • 1
  • 9
1
vote
1 answer

NSSplitView Proposed split divider not going to right place?

I have an NSSplitViewDelegate, and I'm constraining the SplitPosition. However, in an edge case, if I move the cursor dragging the divider off the edge of the screen, the divider itself starts at (0, 0). However, this happens even if the…
user3340037
  • 731
  • 2
  • 8
  • 23
1
vote
1 answer

Pushing sub-view of NSSplitView when constraint reached

In OS X, I have a NSSplitView with 3 subviews stacked vertically: A, B, C. View B has a minimum height constraint. If I push the B-C divider upwards, it stops when the constraint is reached, as it should. I would like, however, to have divider A-B…
insys
  • 1,288
  • 13
  • 26
1
vote
0 answers

Drawing artefacts when resizing a NSScrollView quickly with autolayout

As shown below I have a NSScrollView with 2 panels (3 actually but not shown in the image). I am wondering if this is simply a performance issue or something more erroneous to do with auto layout? Neither of the views are particularly complicated…
Daniel Farrell
  • 9,316
  • 8
  • 39
  • 62
1
vote
1 answer

Remove blue outline from NSSplitView's subviews

I have an NSSplitView, and each subview (left/right) seems to draw a bright blue outline around them when clicked. Each of these subviews is a NSScrollView Is there a means of disabling this? I have dug through the docs to no avail.
briangonzalez
  • 1,606
  • 16
  • 21
1
vote
1 answer

Split view divider is not showing up when subclassing from NSSplitView

I created a custom SplitView class that subclasses from NSSplitView. Everything looks right to me, and works fine, except the divider. For some reason it doesn't want to show up between my views of a SplitView. Any kind of hint or help is highly…
Eugene Gordin
  • 4,047
  • 3
  • 47
  • 80
1
vote
1 answer

How to force all subviews of NSSplitView to be visible at startup?

I am making a UI completely programmatically. (no IB) I made a NSWindow, and attached a NSSplitView. The problem is first subview of the split-view always become collapsed when window shows up at program startup. How can I force to show all the…
eonil
  • 83,476
  • 81
  • 317
  • 516
1
vote
1 answer

nssplitview programmatically add nsview on top

I am trying to programmatically add a NSView over a NSSplitView (to cover it). Every attempt to do this has resulted in it being added into the NSSplitview as an extra subview. Can anyone please help? Codes: InfoTrainView *myView = [[[InfoTrainView…
jread1297
  • 27
  • 5