mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:58:11 +00:00

- MacPDFWindowController is now the xib file's owner - _pdfView moves over - MacPDFWindowController is now the MacPDFViewDelegate and responsible for updating the window's title - Due to MacPDFWindowController now being the xib file's owner, windowControllerDidLoadNib: is no longer called automatically, so call a custom windowIsReady method manually instead No behavior change.
22 lines
325 B
Objective-C
22 lines
325 B
Objective-C
/*
|
|
* Copyright (c) 2023, Nico Weber <thakis@chromium.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "CocoaWrapper.h"
|
|
|
|
#import "MacPDFWindowController.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface MacPDFDocument : NSDocument
|
|
|
|
- (PDF::Document*)pdf;
|
|
- (void)windowIsReady;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|