40 questions
0
votes
0
answers
63
views
NSSplitViewController - how to get the sidebar to contain traffic controls (like Xcode 26)
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 ...
1
vote
1
answer
302
views
I'm looking for a simple splitView macOS template in swift, who can provide a direction? [duplicate]
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 ...
1
vote
0
answers
384
views
NSSplitViewController, Want to disable the behavior of opening sidebar by moving the mouse during full screen
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 ...
3
votes
1
answer
604
views
How to use the Big-Sur style toolbar + split view from an old codebase?
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 ...
1
vote
1
answer
232
views
NSSplitViewController does not call delegate methods
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 ...
-2
votes
1
answer
66
views
How to fix the postion of splitDividerView in NSSplitViewController
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 ...
0
votes
2
answers
410
views
NSSplitViewController doesn't collapse when created from a Storyboard
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 ...
1
vote
0
answers
113
views
supplementalTargetForAction:sender: doesn't get called
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 ...
4
votes
4
answers
2k
views
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(...
1
vote
0
answers
223
views
How to get parent splitviewcontroller from view(xib)
I'm currently able to achieve this with Storyboards using:
var parentSplit : NSSplitViewController? {
guard let splitVC = parent as? NSSplitViewController else { return nil }
return splitVC
}...
6
votes
2
answers
3k
views
Align NSToolbarItems with NSSplitView columns
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 ...
0
votes
0
answers
128
views
Split view controller memory management
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 ...
1
vote
1
answer
668
views
Collapsing NSSplitViewItem does not call splitViewDidResizeSubviews
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 ...
0
votes
1
answer
101
views
How can I fix it so that when I add a NSSplitViewController to the storyboard my window isn't collapsed?
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 ...
3
votes
2
answers
637
views
NSSplitViewController causing contained views to draw over window corners
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 ...
0
votes
1
answer
1k
views
Programmatically changing the views inside NSSplitViewController
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 ...
3
votes
1
answer
762
views
How to disable resizing split view items in NSSplitViewController
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 ...
3
votes
1
answer
1k
views
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 ...
1
vote
2
answers
1k
views
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,...
1
vote
0
answers
980
views
OSX 10.10 NSSplitViewController content sizes and resizing
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 ...