diff options
author | Teddy Wing | 2023-09-30 02:28:45 +0200 |
---|---|---|
committer | Teddy Wing | 2023-09-30 02:28:45 +0200 |
commit | f93058e072914e99bf677e360790c0866ad5ce5e (patch) | |
tree | 69380f5f41e8aed2a1a240babeeb84caea680e2e /src | |
parent | 78990598a9fafda25876b3fc26e327c87719a719 (diff) | |
download | Base-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/AppDelegate.m | 2 |
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 |