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

Prevent breaking constraint on collapsable NSSplitView

I have a NSSplitView which contains a NSSearchField. It looks like this: I've created the NSSearchField with the following code: - (void) applicationDidFinishLaunching: (NSNotification *) aNotification { searchField = [[NSSearchField alloc]…
Kyle
  • 17,317
  • 32
  • 140
  • 246
0
votes
0 answers

In the SplitView when custom view is added, scrollers are not coming and complete view is not visible

I have a split view and to one of the view I am adding a custom view. The custom view is larger in size. So ideally scrollers should come. Could any one let me know why scrollers are not coming. The custom view is shown as the size of the split view…
0
votes
0 answers

NSTextView non-editable in NSSplitview

I have an NSSplitView in My window. the left is an NSOutlineView. When I click the OutlineView's item, the right Which is a custom ViewController's view will look like the below: Screenshot: then,a problem occurs that the two NSTextView can't…
Taylee
  • 3
  • 3
0
votes
1 answer

Accessing methods, actions and/or outlets from other controllers with swift

I'm working on a macOS project where I have a split view containing 2 other ViewControllers and I can't figure out how to access the ViewControllers from my primary window's ViewController. this is the setup: Basically what I'm trying to do is use…
Spike Grobstein
  • 532
  • 5
  • 12
0
votes
1 answer

Can I use a custom view as a NSSplitView's divider?

I want to use a taller (27pt) view as the divider for a NSSplitView which is vertically-stacked (splitView.isVertical = false). Is there an intended way to do this? If not, is there a common hack? I was thinking of using a thin divider and listening…
Ky -
  • 30,724
  • 51
  • 192
  • 308
0
votes
1 answer

NSSplitView with toolbars

I'm trying to make an application that looks like the Messages app from Apple. The NSSplitView has toolbars on both subviews of the NSSplitView. They blend in with the top toolbar. It's similar to the NSToolBar but that doesn't work in…
KVISH
  • 12,923
  • 17
  • 86
  • 162
0
votes
1 answer

Unable to change delegate on NSSplitView

I have a storyboard that contains a main window (with a corresponding MainWindowController class), and a main view (an NSSplitViewController, with corresponding MainViewController class). For certain functionality I am attempting to set the…
0
votes
1 answer

Setting SplitViewItem's ViewController

Im having trouble setting a nssplitviewcontroller's split view's view controller. I have a reference from the story board and am trying to set the items view controller programmatically: override func viewDidLoad() { dash =…
John
  • 2,410
  • 1
  • 19
  • 33
0
votes
1 answer

How to get NSSplitView splitView:shouldHideDividerAtIndex:to be called at startup?

I have implemented my delegate methods to hide the divider when a view is collapsed, which works fine. The problem is at startup, if a view is collapsed, autosave keeps it collapsed but doesn't ask me if I want the dividers hiding, so they show by…
user5005945
0
votes
1 answer

Drawing text above the divider in an NSSplitView, the top view will occasionally draw over it

Here's a .swf (pardon, the bad website and swf, that was the only way I could capture what was happening) http://screencast.com/t/rzJ3b5ihSj What appears to be happening, is that my divider is occasionally drawn first, and then the top NSView in the…
A O
  • 5,516
  • 3
  • 33
  • 68
0
votes
2 answers

NSSplitViewController Child View Not Added

I've created a simple NSViewController and want to add a split view with just one child view. The split view should be controlled by a NSSplitViewController, because I'd like to use the NSSplitItem's facilities for collapsing/expanding split items.…
jabu.10245
  • 1,884
  • 1
  • 11
  • 20
0
votes
2 answers

Incorrect NSTableView frame within an NSSplitView

Within my Mac app I've setup two NSSplitViews to create a Mail-style interface (with the first ScrollView used to create a vertical separator, and the second nested within the first, to create the horizontal separator). To illustrate the interface,…
ndg
  • 2,585
  • 2
  • 33
  • 58
0
votes
1 answer

NSSplitView partly collapse

I have a NSSplitView with two horizontal subviews. The left one is a NSOutlineView, the right a NSTableView. The left view has two constraints for the width: 1) >= 150 and 2) <= 200. So I have a minimum and a maximum width. At func…
Lupurus
  • 3,618
  • 2
  • 29
  • 59
0
votes
1 answer

Develop an iPhoto-like cocoa app for mac OSX

I plan to develop a mac OSX app that has a UI similar to that of iPhoto - a panel on the left and a grid view of images on the right. I am thinking of using NSSplitView to create two panels and using NSCollectionView for the grid. I guess this must…
0
votes
1 answer

NSSplitView - Preserve subview width on window resize

I have an NSSplitView covering all of my window. The NSSplitView contains two (vertical) subviews, one next to the other. When the user resizes the window, I want the one on the left to remain intact. How is that doable? P.S. Not the…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223