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

macOSでのウィンドウタイトルをプラットフォームに寄せた表現にする #60

Merged
merged 1 commit into from Jun 29, 2020

Conversation

shibafu528
Copy link
Owner

@shibafu528 shibafu528 commented Jun 28, 2020

setWindowFilePath を使うとプロキシアイコンを出せるようになるので、使ってみた。
あと、macOSのHIGではウィンドウタイトルには書類名のみを表示したほうが良さそうなので、そのようにした。

New workspace

スクリーンショット 2020-06-29 0 58 13

Saved workspace

スクリーンショット 2020-06-29 0 58 30

もう少し工夫するなら -[NSFileManager displayNameAtPath:] を使ってFinder設定を考慮して拡張子を削ったりするのも良いかも。とはいえ、開発者ツールを使うような人は拡張子非表示にするのかな、とも思うが、文化を良く知らないのでなんとも。

@shibafu528
Copy link
Owner Author

あと、macOSにおいては「名称未設定」を使うべきだったり… まあいいか

@shibafu528 shibafu528 merged commit cfa0037 into master Jun 29, 2020
@shibafu528 shibafu528 deleted the feature/improve-window-title branch June 29, 2020 12:29
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.

None yet

1 participant