Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for NSplitView #100

Merged
merged 7 commits into from
Feb 13, 2023
Merged

Conversation

steipete
Copy link
Contributor

@steipete steipete commented Apr 3, 2021

This PR adds support for introspecting NSplitView.

We could also expose NSplitViewController instead, it's accessible by simply calling delegate on the AppKit view. So far the AppKit part didn't expose any controller so not sore what's preferred - the name currently doesn't fully add up.

I'm using this in my sideproject to hide the detail view on-demand, works just as needed.

Copy link
Collaborator

@JannThomas JannThomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test showcasing the functionality.

@davdroman
Copy link
Collaborator

davdroman commented Feb 13, 2023

@steipete I understand this is a very old PR, but I figured I'd add some tests and merge it anyway.

In general, I don't understand why the library doesn't vend controller introspection functions the way it does for iOS. Maybe fiddling with controllers isn't as customary a practice on macOS. I wouldn't know as I'm an iOS developer.

For now, I'll rename the method to introspectSplitView, merge this, and we can later consider supporting an additional introspectSplitViewController if needed.

@steipete
Copy link
Contributor Author

Awesome, great to see this merged!

@davdroman davdroman merged commit e0536ff into siteline:master Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants