Skip to content

Split view modernization, better window frame restoration and other fixes - #88

Merged
tiennou merged 7 commits into
gitx:masterfrom
ksuther:split-view
Nov 26, 2017
Merged

tiennou merged 7 commits into
gitx:masterfrom
ksuther:split-view

Conversation

@ksuther

@ksuther ksuther commented Apr 25, 2017

Copy link
Copy Markdown
Contributor

Converted nibs with split views to Auto Layout and using split view autosave instead of managing it all by hand.
Auto Layout also gives us much cleaner resizing of split views.
One thing that was lost was the collapsable split view in the history view, but it can be reimplemented using the newer NSSplitView delegate methods much more easily in the future.

@ksuther

ksuther commented Apr 25, 2017

Copy link
Copy Markdown
Contributor Author

Added better window frame saving as well. It would have caused merge conflicts to put them in a separate branch.

@ksuther ksuther changed the title Split view modernization and fixes Split view modernization, better window frame restoration and other fixes Apr 25, 2017
@tiennou

tiennou commented Jul 4, 2017

Copy link
Copy Markdown
Contributor

I gave that a spin, and Xcode logged that :

[Layout] Detected missing constraints for <QLPreviewTitleBarView: 0x60e0000b1420>.  It cannot be placed because there are not enough constraints to fully define the size and origin. Add the missing constraints, or set translatesAutoresizingMaskIntoConstraints=YES and constraints will be generated for you. If this view is laid out manually on macOS 10.12 and later, you may choose to not call [super layout] from your override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug. This error will only be logged once.

Care to fix it ?

@ksuther

ksuther commented Jul 4, 2017

Copy link
Copy Markdown
Contributor Author

That looks like it's coming from QuickLook, not our window or views. I'll see if I can get it to happen to make sure.

ksuther added 7 commits July 5, 2017 12:21
Split view positions aren't preserved yet.
…as causing it to scroll horizontally before it would start wrapping.
Staging table views and text view aren't in NSBoxes anymore, it's cleaner to use a view and a separate label.
Removed PBNiceSplitView and using the system split view instead.
If frame isn't explicitly set using the autosaveName then the autosaveName is only used for the first two windows. Opening the third and subsequent windows then start using the default window size instead of the autosave frame.
@ksuther

ksuther commented Jul 5, 2017 •

Copy link
Copy Markdown
Contributor Author

Fixed the QLPreviewTitleBarView logging and rebased off of master.

@ksuther

ksuther commented Sep 21, 2017

Copy link
Copy Markdown
Contributor Author

Any chance of getting this and other PRs merged or commented on?

@tiennou
tiennou merged commit 899ca98 into gitx:master Nov 26, 2017
@tiennou

tiennou commented Nov 26, 2017

Copy link
Copy Markdown
Contributor

Looks good, thanks !

@ksuther
ksuther deleted the split-view branch December 4, 2017 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants