[comp.sys.next] Print panel Cancels too many times

glenn@heaven.woodside.ca.us (Glenn Reid) (07/06/90)

My application prints fine, but the Print panel makes you click the
Cancel button FIVE times before it finally goes away.  I can't imagine
why.

My application supports the Print function in a pretty normal way,
in that it just sends the selector "printPSCode:" to the first
responder, which I think ends up being NXApp.

I have overridden a bunch of the printing methods for positioning on the
page and generating PS code and all that, but it doesn't appear that they
are being invoked when Cancel is hit, since my debugging code never gets
called.  They may be involved in the problem, but only in some mysterious
way.  For example, I would expect the printing manager to call my
"getRect:forPage:" method, but it doesn't (in fact, it doesn't even call
it when it's printing (?))

Has this happened to anybody before?  Is there some way to track this
down, or to get it to quit Canceling?

Thanks for any help.  If any of you have spent any time with these
printing methods like "adjustPageWidthNew::::" or "placePrintRect::"
or "beginPage::::" or any of those, I'd also like to talk to you about
your success with these various methods.

Thanks very much,
  Glenn Reid

-- 
 Glenn Reid				PostScript/NeXT consultant
 glenn@heaven.woodside.ca.us		Independent Software Developer
 ..{adobe,next}!heaven!glenn		Unparalleled Quality