Restore -allocWithZone: method

This commit is contained in:
fredkiefer 2018-01-24 20:18:49 +01:00
parent 9451330883
commit 78b330ff70
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2018-01-24 Fred Kiefer <FredKiefer@gmx.de>
* Printing/GSCUPS/GSCUPSPrintOperation.m:
Restore -allocWithZone: methods as this is needed to override
behaviour in superclass.
2018-01-23 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSApplication.m (-targetForAction:to:from:): Warn about

View file

@ -48,6 +48,13 @@
//A subclass of GSPrintOperation, NOT NSPrintOperation.
@implementation GSCUPSPrintOperation
// Required because the super class redefines the default
+ (id) allocWithZone: (NSZone*)z
{
return NSAllocateObject (self, 0, z);
}
- (id)initWithView:(NSView *)aView
printInfo:(NSPrintInfo *)aPrintInfo
{