aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2023-09-30 02:28:45 +0200
committerTeddy Wing2023-09-30 02:28:45 +0200
commitf93058e072914e99bf677e360790c0866ad5ce5e (patch)
tree69380f5f41e8aed2a1a240babeeb84caea680e2e
parent78990598a9fafda25876b3fc26e327c87719a719 (diff)
downloadBase-Windowed-Application-f93058e072914e99bf677e360790c0866ad5ce5e.tar.bz2
AppDelegate: Set main window content view to scroll view
Make the window's `contentView` the `_scroll_view` so that resizing the window causes the scroll view to resize with the window instead of having a fixed size.
-rw-r--r--src/AppDelegate.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AppDelegate.m b/src/AppDelegate.m
index 8ae9b6d..7f86eda 100644
--- a/src/AppDelegate.m
+++ b/src/AppDelegate.m
@@ -40,7 +40,7 @@
[_scroll_view setHasVerticalScroller:YES];
[_scroll_view setDocumentView:_text_view];
- [[_window contentView] addSubview:_scroll_view];
+ [_window setContentView:_scroll_view];
}
- (void)applicationDidFinishLaunching:(NSNotification *)notification