mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 11:14:00 +00:00
Turn printDoc into local state
This commit is contained in:
parent
fba1d2c9f6
commit
37945f0be1
|
@ -15,7 +15,6 @@
|
||||||
@class VLSheetWindow;
|
@class VLSheetWindow;
|
||||||
@class VLPDFWindow;
|
@class VLPDFWindow;
|
||||||
@class VLLogWindow;
|
@class VLLogWindow;
|
||||||
@class PDFDocument;
|
|
||||||
|
|
||||||
#define VLBIABType @"VLBIABType"
|
#define VLBIABType @"VLBIABType"
|
||||||
#define VLNativeType @"org.aereperennius.vocaleasel-song"
|
#define VLNativeType @"org.aereperennius.vocaleasel-song"
|
||||||
|
@ -65,7 +64,6 @@ enum {
|
||||||
VLLogWindow * logWin;
|
VLLogWindow * logWin;
|
||||||
VLPDFWindow * pdfWin;
|
VLPDFWindow * pdfWin;
|
||||||
VLKeyValueUndo* undo;
|
VLKeyValueUndo* undo;
|
||||||
PDFDocument * printDoc;
|
|
||||||
NSRange previewRange;
|
NSRange previewRange;
|
||||||
float playRate;
|
float playRate;
|
||||||
float baseTempo;
|
float baseTempo;
|
||||||
|
|
|
@ -119,7 +119,6 @@
|
||||||
@"", @"songGroove",
|
@"", @"songGroove",
|
||||||
@"", @"songTempo",
|
@"", @"songTempo",
|
||||||
nil]];
|
nil]];
|
||||||
printDoc = nil;
|
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -612,8 +611,8 @@
|
||||||
error:(NSError **)outError
|
error:(NSError **)outError
|
||||||
{
|
{
|
||||||
[self createTmpFileWithExtension:@"pdf" ofType:VLPDFType];
|
[self createTmpFileWithExtension:@"pdf" ofType:VLPDFType];
|
||||||
[printDoc autorelease];
|
PDFDocument * printDoc = [[PDFDocument alloc] initWithURL:[self fileURLWithExtension:@"pdf"]];
|
||||||
printDoc = [[PDFDocument alloc] initWithURL:[self fileURLWithExtension:@"pdf"]];
|
[printDoc autorelease];
|
||||||
|
|
||||||
NSPrintOperation *printOperation = [printDoc getPrintOperationForPrintInfo:[self printInfo] autoRotate:NO];
|
NSPrintOperation *printOperation = [printDoc getPrintOperationForPrintInfo:[self printInfo] autoRotate:NO];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user