Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
63 views

I'm trying to setup a NSSplitViewController to match Xcode 26's style. In Xcode the sidebar contains the traffic light controls. I've got the following code: import Cocoa // UserDefaults key for ...
Kyle's user avatar
  • 17.7k
1 vote
1 answer
302 views

I'm experienced with iOS development in objective C and swift. Now I want to build a simple macOS application for personal use and when thinking about the user interface i want basically a sidebar ...
Peter Van de Put's user avatar
1 vote
0 answers
384 views

When the screen is set to fullscreen with NSSplitviewController, when the mouse is moved to the left edge, the sidebar opens, or rather, is drawn on top. I want to disable the above behavior while ...
llscsrl's user avatar
  • 69
3 votes
1 answer
604 views

According to this WWDC 2020 talk, Big Sur's toolbar is automatically sectioned to match and follow the panes of the NSSplitView below. Unfortunately, this requires us to use the post-NSViewController ...
Yuji's user avatar
  • 34.2k
1 vote
1 answer
232 views

I'm using an NSSplitViewController subclass and the delegate methods are not being called. This is purely programmatically without nib/storyboard. The code can be copied to a new project. The file ...
user avatar
-2 votes
1 answer
66 views

How to fix the postion of splitDividerView in NSSplitViewController I had been search for years,but it doesn't work.Please help,Thanks! Once this app start,the left view width is 150,but still i can ...
JoeJoe's user avatar
  • 39
0 votes
2 answers
410 views

I am trying to mimick the behaviour of apps like Notes and Contacts, where when I resize the window the left split view item collapses. I can't recreate this behaviour when using a Storyboard. If I ...
user avatar
1 vote
0 answers
113 views

I am trying to send an action from a menu item to a child view controller of a NSSplitViewController. As I understand I am supposed to override supplementalTargetForAction:sender: on the ...
de.'s user avatar
  • 8,787
4 votes
4 answers
2k views

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(...
sam's user avatar
  • 3,479
1 vote
0 answers
223 views

I'm currently able to achieve this with Storyboards using: var parentSplit : NSSplitViewController? { guard let splitVC = parent as? NSSplitViewController else { return nil } return splitVC }...
Jerry U's user avatar
  • 636
6 votes
2 answers
3k views

Finder and Notes have a peculiar behaviour that I am seeking to reproduce. The ‘flexible space’ in the NSToolbar seems to take the dimensions of the split view into account. For instance, the first ...
Eitot's user avatar
  • 186
0 votes
0 answers
128 views

I use simple split view controller in my osx application... split item 0 is used for menu and second one is for content (like in slack application). I get memory leak, so need optimizations ... here ...
Nininea's user avatar
  • 2,749
1 vote
1 answer
668 views

I have a class that inherits from NSSplitViewController and overrides the splitViewDidResizeSubviews function. When I call collapse on a NSSplitViewItem inside the NSSplitViewController and I see the ...
rogermushroom's user avatar
0 votes
1 answer
101 views

When I add a NSSplitViewController to my document-based storyboard like so: It will not respect my minimum content size and collapses instantly. Why is it doing this, is this a bug? And how do I fix ...
Mark's user avatar
  • 18.4k
3 votes
2 answers
637 views

I'm trying to create a little Finder clone using Cocoa. I'm placing a source list table view (to act as a sidebar) and a standard table view inside of an NSSplitView controlled by an ...
Displayname1234's user avatar
0 votes
1 answer
1k views

From the NSSplitViewController class reference at https://developer.apple.com/library/prerelease/mac/documentation/AppKit/Reference/NSSplitViewController_Class/index.html I understand that it has a ...
perfopt's user avatar
  • 97
3 votes
1 answer
762 views

I have a split view controller. I made everything working but one thing: The user is able to drag the center bar to adjust the size of the bottom view. I have been fiddling with the storyboard for a ...
Tom Shen's user avatar
  • 2,048
3 votes
1 answer
1k views

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 ...
user3932488's user avatar
1 vote
2 answers
1k views

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,...
Naoto Ida's user avatar
  • 1,295
1 vote
0 answers
980 views

The basis of my problem is that when I resize my window, the left pane of my split view resizes and the right side keeps a fixed width, i'd like it to work the other way around. If I try to move the ...
Darren's user avatar
  • 10.5k