Skip to content

Commit

Permalink
* Printing/GSCUPS/GSCUPSPrinter.m,
Browse files Browse the repository at this point in the history
* Printing/GSCUPS/GSCUPSPrintInfo.m:
Restore -allocWithZone: methods as this is needed to override
behaviour in superclass.
  • Loading branch information
fredkiefer committed Jan 1, 2018
1 parent 99b904e commit 4e70f09
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2018-01-01 Fred Kiefer <[email protected]>

* Printing/GSCUPS/GSCUPSPrinter.m,
* Printing/GSCUPS/GSCUPSPrintInfo.m:
Restore -allocWithZone: methods as this is needed to override
behaviour in superclass.

2018-01-01 Yavor Doganov <[email protected]>

* Documentation/make_services.1: Typo fix.
Expand Down
5 changes: 5 additions & 0 deletions Printing/GSCUPS/GSCUPSPrintInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ + (void)initialize
}
}

// Required because the super class redefines the default
+ (id) allocWithZone: (NSZone*)z
{
return NSAllocateObject (self, 0, z);
}

+ (NSPrinter*) defaultPrinter
{
Expand Down
6 changes: 6 additions & 0 deletions Printing/GSCUPS/GSCUPSPrinter.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ +(void) initialize
}
}

// Required because the super class redefines the default
+ (id) allocWithZone: (NSZone*)z
{
return NSAllocateObject (self, 0, z);
}

//
// Finding an NSPrinter
//
Expand Down

0 comments on commit 4e70f09

Please sign in to comment.