mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:17:34 +00:00
MacPDF: Remove application restore logging again
This commit is contained in:
parent
d3e8d87672
commit
87f31cab70
1 changed files with 0 additions and 26 deletions
|
@ -47,37 +47,11 @@
|
||||||
{
|
{
|
||||||
[super windowControllerDidLoadNib:aController];
|
[super windowControllerDidLoadNib:aController];
|
||||||
|
|
||||||
NSLog(@"restorationClass %@", aController.window.restorationClass);
|
|
||||||
NSLog(@"restorable %@", @(aController.window.restorable));
|
|
||||||
NSLog(@"identifier %@", aController.window.identifier);
|
|
||||||
|
|
||||||
if (_doc) {
|
if (_doc) {
|
||||||
[_pdfView setDocument:_doc->make_weak_ptr()];
|
[_pdfView setDocument:_doc->make_weak_ptr()];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSArray<Class>*)allowedClassesForRestorableStateKeyPath:(NSString*)keyPath
|
|
||||||
{
|
|
||||||
auto res = [NSDocument allowedClassesForRestorableStateKeyPath:keyPath];
|
|
||||||
NSLog(@"restore %@", res);
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)restoreDocumentWindowWithIdentifier:(NSUserInterfaceItemIdentifier)identifier
|
|
||||||
state:(NSCoder*)state
|
|
||||||
completionHandler:(void (^)(NSWindow*, NSError*))completionHandler
|
|
||||||
{
|
|
||||||
NSLog(@"here restoreDocumentWindowWithIdentifier");
|
|
||||||
return [super restoreDocumentWindowWithIdentifier:identifier state:state completionHandler:completionHandler];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)encodeRestorableStateWithCoder:(NSCoder*)coder
|
|
||||||
{
|
|
||||||
// called on switch away from app
|
|
||||||
NSLog(@"here encodeRestorableStateWithCoder");
|
|
||||||
[super encodeRestorableStateWithCoder:coder];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (NSData*)dataOfType:(NSString*)typeName error:(NSError**)outError
|
- (NSData*)dataOfType:(NSString*)typeName error:(NSError**)outError
|
||||||
{
|
{
|
||||||
// Insert code here to write your document to data of the specified type. If outError != NULL, ensure that you create and set an appropriate error if you return nil.
|
// Insert code here to write your document to data of the specified type. If outError != NULL, ensure that you create and set an appropriate error if you return nil.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue