mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:37:45 +00:00
MacPDF: Introduce MacPDFWindowController
I'd like to add a sidebar, and NSSplitViewItem apparently isn't accessibly in .xib files without contortions. So I want to move to creating the window in code, and this is a step towards that. No behavior change.
This commit is contained in:
parent
d6dff83397
commit
67f6baead0
4 changed files with 45 additions and 2 deletions
20
Meta/Lagom/Contrib/MacPDF/MacPDFWindowController.mm
Normal file
20
Meta/Lagom/Contrib/MacPDF/MacPDFWindowController.mm
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Nico Weber <thakis@chromium.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#import "MacPDFWindowController.h"
|
||||
|
||||
@implementation MacPDFWindowController
|
||||
|
||||
- (instancetype)initWithDocument:(MacPDFDocument*)document
|
||||
{
|
||||
if (self = [super initWithWindowNibName:@"MacPDFDocument" owner:self]; !self)
|
||||
return nil;
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue