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.