diff options
| author | Teddy Wing | 2020-10-11 00:33:37 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2020-10-11 00:33:37 +0200 | 
| commit | cc4879875a35042f1440c4445dbac9ea1b26589e (patch) | |
| tree | 39e8795217fb0ae38d71662f6538151ae9847e54 /Drop Serve.xcodeproj | |
| parent | bc472b8f0ee0c28deecd77aa66f45f84011cec11 (diff) | |
| download | Drop-Serve-cc4879875a35042f1440c4445dbac9ea1b26589e.tar.bz2 | |
MainMenu.xib: Don't resize the window when path is long
Previously, when the file path of the folder being served was long, it
would resize the window to fit the path.
Prevent resizing, and truncate the path label so that it truncates the
beginning of the path and keeps the end.
Thanks to Stephan (https://stackoverflow.com/users/565336/stephan) on
Stack Overflow for the tip about setting
> Content Compression Resistance Priority of the NSTextView less than
> NSLayoutPriorityWindowSizeStayPut (e.g. 499). Otherwise your
> NSTextView will not truncate its content.
(https://stackoverflow.com/questions/4171465/truncate-nstextview/13977990#13977990)
Diffstat (limited to 'Drop Serve.xcodeproj')
0 files changed, 0 insertions, 0 deletions
