discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSCUPS and GNUstep Printing


From: Chad Hardin
Subject: Re: GSCUPS and GNUstep Printing
Date: Fri, 11 Jun 2004 14:01:55 -1000


On Jun 11, 2004, at 12:46 PM, Adam Fedor wrote:


On Jun 11, 2004, at 4:37 PM, Chad Hardin wrote:

Probably these should go in a separate subdirectory under Source.
Ok, under GSCUPS, I suppose?

Perhaps 'Printing' or something generic that describes what the files do.

Of course. :-)

//find out what we are actually going to allocate, is it a GSLPRPrinter or a GSCUPSPrinter (maybe even a GSWindowsPrinter?)
        userDefault = //whatever the default is

        if( [userDefault isEqualToString: @"GSCUPS"])
        {
                return [GSCUPSPrinter alloc];
        }

        if( [userDefault isEqualToString: @"GSLPR"])
        {
                return [GSCUPSLPR alloc];
        }

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.

Roger that. I am making a new VMware Machine right now so I can work with GNUstep CVS to do this stuff. You see, usually I work with the packaging of GNUstep releases....


Chad



_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep





reply via email to

[Prev in Thread] Current Thread [Next in Thread]