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
4
votes
4 answers

How to set custom NSSplitView with NSSplitViewController?

I'd like to use a custom NSSplitView with my NSSplitViewController. The docs say: To provide a custom split view, set this property at any time before you call super in the inherited viewDidLoad() method; that is, before the split view…
sam
  • 3,399
  • 4
  • 36
  • 51
4
votes
1 answer

Modal sheet is not attached to window

I'm trying to call modal sheet inside my root window. I've have success with showing sheet but it is not attached to main window. I've read about similar problem: Window outlet is set (it is automaticly set by XCode) Visible at launch option is…
Vasily
  • 3,740
  • 3
  • 27
  • 61
4
votes
1 answer

How to change the color of NSSplitView's divider on nib?

I want to change the color of NSSplitView's dividerColor in my Cocoa app, but when I typed in the following code, the error Cannot assign to the result of this expression occurred. splitView.dividerColor = NSColor.redColor() I think this is…
Blaszard
  • 30,954
  • 51
  • 153
  • 233
4
votes
1 answer

How to disable accessibility support for the divider of a NSSplitView?

I have a NSSplitView in my app. Its divider position is fixed, the user is not able to drag the divider around. Now I am adding support for accessibility. When using VoiceOver, the user can select & drag the divider. That breaks my UI. How can I…
mangerlahn
  • 4,746
  • 2
  • 26
  • 50
4
votes
1 answer

Sidebar Demo - replaceSubview

I have NSSplitView with divider style set as thin and it looks great. However, if I replace one of a subviews with this line of code [self.horizontalSplitView replaceSubview:[[self.horizontalSplitView subviews] objectAtIndex:0]…
pawelropa
  • 1,409
  • 1
  • 14
  • 20
4
votes
0 answers

how to set maximum width for splitview?

I am new to Cocoa and Xcode 4. I have one project on OSX Lion Application. I need to design interface in Xcode. I use NSSplitView to create 3 column in my Application. And i want to set the maximum size for the first column and the third column but…
nsnara
  • 63
  • 1
  • 9
3
votes
1 answer

SplitView not resizing NSTableView in subview correctly

I have a 10.6 app that I am building on Lion with Xcode 4.3 There is a horizontal split view in the main view, containing the following: The top view contains an NSSearchField with an NSTableView below it. The bottom view contains a WebView. I have…
Darren Wheatley
  • 456
  • 1
  • 3
  • 14
3
votes
1 answer

Can't hide NSSplitView divider

I have a split view that looks like: | source | filter | list | detail | I want to programmatically hide the filter so in my NSSplitView delegate I use -(BOOL)splitView:(NSSplitView *)splitView shouldHideDividerAtIndex:(NSInteger)dividerIndex To…
Trygve
  • 1,317
  • 10
  • 27
3
votes
1 answer

Disable Autolayout for NSSplitView in Interface Builder

By using a NSSplitViewController inside my Storyboard, I wanted to override the behaviour of the contained split view. By implementing some of the the NSSplitViewDelegate method regarding the max constraint for the slider, I got this exception…
yageek
  • 4,115
  • 3
  • 30
  • 48
3
votes
1 answer

Source List Sidebar implementation in Swift with split view

I'm having issues trying to implement a navigation sidebar for an app. Considering that source lists are so prominent in OS X apps and that Apple's Human Interface Guidelines refer to a source list as an ideal way to navigate within an app, I'm…
3
votes
0 answers

NSSplitViewController gives child view different size each time the app starts

I'm using Autolayout & NSSplitViewController to develop a OS X app with two split views. But every time I run the app, the split views have different size. Sometimes it shows: But sometimes: What I want is the left panel have a min width of 150…
luin
  • 2,077
  • 2
  • 20
  • 23
3
votes
1 answer

Change views inside NSSplitViewController

I'm trying to migrate my Objective-C and now improving Swift knowledge to an application for Mac OS X. Steep learning curve! I'm trying to load a NSSplitViewController with different views in the "detail view" depending on buttons pressed on the…
Darren
  • 1,682
  • 1
  • 15
  • 33
3
votes
2 answers

NSSplitView programmatically Change Size

I was wondering if there's a way you can programatically change the position of the splitter.
Adrian Sluyters
  • 2,186
  • 1
  • 16
  • 21
3
votes
6 answers

How to hide a divider of nssplitview?

Now I want to hide or show with my condition a divider when my app run. used this delegate method: - (BOOL)splitView:(NSSplitView *)splitView shouldHideDividerAtIndex:(NSInteger)dividerIndex { if (A) return YES; else return…
jin
  • 2,145
  • 5
  • 27
  • 44
3
votes
2 answers

Configure NSSplitView with three subviews like mail.app

It is posible to configure splitview with 3 subviews through auto layout constraints like in mail.app? What i mean: when the user resizing the window only rightmost subview change it size, when the user drags the divider between the leftmost and…
1 2
3
10 11