Georg Fleischmann wrote:
> Hi,
>
> here are three patches which fix a bunch of bugs for printing.
> With the fixes [NSView -dataWithEPSInsideRect:] is now working for my application.
>
> The changes in NSPrintOperation create a context and deliver the results for
> writing EPSData.
> For all print operations, the context will be removed from the context list
> after the printing has been finished.
>
> The change in XGStreamContext just closes the stream. This can't be done in
> dealloc, because the written file is needed before the autorelease pool has
> been released. I have added a subclass of -destroyContext to close the stream.
>
> The change in NSView removes the transformations to the window for printing,
> because the printed view has to be the base. I'm not sure if this one is really
> done in a wise way (Opinions?). For now, I have added this to
> -dataWithEPSInsideRect only, but it has to be done for all printing operations.
>
I added this patch although I completely rewrote the NSView changes.
There's more that needs to be done when printing that just reseting the
coordinates so I tried to account for that. It seemed to work for me but
perhaps you can test it again.
--
Adam Fedor, Digital Optics | Fudd's law of opposition: Push
[EMAIL PROTECTED] http://www.doc.com | something hard enough, and it
[EMAIL PROTECTED] http://www.gnustep.org | will fall over.
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep