|
From: | Adam Fedor |
Subject: | Re: GSCUPS and GNUstep Printing |
Date: | Fri, 11 Jun 2004 16:46:27 -0600 |
On Jun 11, 2004, at 4:37 PM, Chad Hardin wrote:
Perhaps 'Printing' or something generic that describes what the files do.Probably these should go in a separate subdirectory under Source.Ok, under GSCUPS, I suppose?
//find out what we are actually going to allocate, is it a GSLPRPrinter or a GSCUPSPrinter (maybe even a GSWindowsPrinter?)Sure, something like that is fine, although both NSPrinInfo and NSPrintPanel are shared, so you probably only need to change the shared factory method, plus you need to check if you can even use GSCupsPrinter even if the default requests it. Also you should put this in allocWithZone: since alloc just calls that.userDefault = //whatever the default is if( [userDefault isEqualToString: @"GSCUPS"]) { return [GSCUPSPrinter alloc]; } if( [userDefault isEqualToString: @"GSLPR"]) { return [GSCUPSLPR alloc]; }
[Prev in Thread] | Current Thread | [Next in Thread] |