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
2
votes
1 answer

NSSplitView not resizing subviews after dynamically adding a subview

I'm trying to add a subview to my NSSplitView, so that my vertical split view goes from --------- view A (height = 100) --------- to ---------- view A (height = 50) ---------- view B (height = 50) ---------- I thought this would be…
davis
  • 1,911
  • 6
  • 26
  • 50
2
votes
1 answer

Using autolayout, how can I center a subview in an NSSplitView without forcing the width NSSplitView to be static?

I have an NSSplitView with content in both NSViews. The left NSView has 2 constraints – Equal Widths and Equal Heights. The right NSView has something simple, say an NSTextField, which is centered via constraints Center X Alignment and Center Y…
Charlie Schliesser
  • 7,851
  • 4
  • 46
  • 76
2
votes
2 answers

How to configure auto layout constraints for NSSplitView with 3 panes

I want to implement a Mail-like NSSplitView so that, when divider 0 is dragged, it pushes divider 1 (compressing subview 2 while width of subview 1 is fixed). ----------------- | | | | | 0 | 1 | 2 | | | | | | | | …
billibala
  • 321
  • 4
  • 14
2
votes
1 answer

XCode6 NSSplitViewController Holding Priorities and canCollapse not working

I was hoping someone can help me out with this. Whatever I do, either though IB or in code, I cannot make the new NSSplitViewController and its items to collapsable or hold their priorities. It cannot be done from the interface builder although this…
Pass
  • 1,501
  • 4
  • 21
  • 39
2
votes
1 answer

Get the number of dividers in an NSSplitView

I suspect that the number of dividers in an NSSplitView is equal to [[MySplitViewObject subviews] count] -1 and that the index of any given divider in an NSSplitView is equal to the index of the subview to the left of or above the divider (depending…
Randall
  • 725
  • 9
  • 27
2
votes
1 answer

NSSplitView with Autolayout, prevent proportional resize

I'am using autolayout with NSSpliView, the setup is as following on the picture The split view is in a window which can resize, when it resizes, the divider is changing proportional 50:50, how to change this, so that the height of the bottom view…
Peter Lapisu
  • 19,915
  • 16
  • 123
  • 179
2
votes
0 answers

Truncate tail of NSTextField fails only in OSX 10.8

I am using an NSTextField with following settings/properties as shown in the image It works abnormally. At times when it is truncating the text while sometime it doesn't as shown : I am unable to find the issue. The complete implementation is…
Akbar
  • 1,509
  • 1
  • 16
  • 32
2
votes
1 answer

NSSplitView splitter pane change notification

Hello I need to implement four views splitters like in Maya, 3ds max, Blender or other similar modeling tools. I use NSSplitView on Mac side of my editor and I need to know when user drags one pane to sync another pane. Is there any way to get new…
Filip Kunc
  • 631
  • 1
  • 8
  • 19
2
votes
2 answers

Unexpected behavior using Autolayout with NSSplitView

I have the following implemented with springs and struts along with several NSSplitViewDelegate resizing and constraint methods and it all works as desired. I am now trying to adopt autolayout for this same scenario by replacing all of the setFrame…
Chuck H
  • 7,434
  • 4
  • 31
  • 34
2
votes
2 answers

NSSplitView issues with 10.7 and 10.8

i'm experiencing some issues with AutoLayout. Building for 10.8 with Xcode 4.6.2 none of the constraints i setup work for OSX 10.7. Are there any known issues around this? Thanks!
David
  • 145
  • 3
  • 9
2
votes
4 answers

How do I fix the height of my view after collapsing NSSplitView?

I've got an NSSplitView with an NSScrollView in the bottom view. The problem is when I collapse, and then re-open (un-collapse) the bottom view, the height of the scroll view is beyond the height of that bottom view so the top part of the scoll…
Austin
  • 4,638
  • 7
  • 41
  • 60
1
vote
1 answer

Replace subview of NSSplitview with custom view

I still have a lot to learn with cocoa so I may have missed something obvious here. I have a custom view I would like to display in an nssplitview which replaces the current subview there. I have a MessageView.xib file, and a MessageView .h/.m…
JonF
  • 2,336
  • 6
  • 38
  • 57
1
vote
1 answer

Widening NSWindow when NSSplitView subview is expanded/uncollapsed to make room

I have an NSSplitView with two subviews. My goal is to have each subview restricted to a minimum width but have the window's minimum width depend on which of the subviews is visible. So for example, if the left/sidebar subview (with a min width of…
benb
  • 11
  • 1
1
vote
1 answer

Replacing a NSSplitView subview with Core Animation

I'm trying to figure out how to animate switching (replacing) subviews in a vertically-configured, 2-view NSSplitView. I've got it semi-working using the following methods in my NSSplitView subclass: To set up the animation: - (void)awakeFromNib { …
Chuck
  • 179
  • 1
  • 9
1
vote
1 answer

how to do a split-view like application in iphone

Is there any way for implementing popovers and split-view in iphone application?.I saw a bible app OliveTree Bible reader,In this app they use the pop overs like feature and split-view like view display.I know split-view is only for ipad ,but how…
Nipin Varma
  • 384
  • 1
  • 7