I’m currently using NSView print: method. I’m customizing my view for printing, but I would like to restore previous settings when the print is finished.
How can I know when a print operation is committed or canceled ?
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After you create your
NSPrintOperation, use-runOperationModalForWindow:delegate:didRunSelector:contextInfo:to run it with a specified delegate (to restore the previous settings) to be called when the print operation is completed.The “Printing Programming Topics for Cocoa” guide has an example of how to do this.