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

Reduce the system version requirements of CellView.swift #48

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

reycn
Copy link

@reycn reycn commented May 31, 2023

It seems that change a little bit is OK.

Test passed on my M1 machine running 12.6.5

MacOS 13.0 -> 12.4

Copy link
Owner

@seeM seeM left a comment

Choose a reason for hiding this comment

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

Thanks! I’m not very familiar with Swift/mac development. Is the idea that you’re using a method that is compatible with an older version of Swift thus older version of macOS?

@@ -204,7 +204,9 @@ class CellView: NSTableCellView {
textView.setContentHuggingPriority(.required, for: .vertical)
}

textView.string = text.trimmingCharacters(in: Foundation.CharacterSet.whitespacesAndNewlines).replacing(/\[\d+[\d;]*m/, with: "")
let string = text.trimmingCharacters(in: Foundation.CharacterSet.whitespacesAndNewlines)
Copy link
Owner

Choose a reason for hiding this comment

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

Would you mind keeping this in a single line as before?

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