Instance Method

beginSheetWithPDFInfo:modalForWindow:completionHandler:

Presents a document-modal PDF panel.

Declaration

- (void)beginSheetWithPDFInfo:(NSPDFInfo *)pdfInfo modalForWindow:(NSWindow *)docWindow completionHandler:(void (^)(NSInteger))completionHandler;

Parameters

pdfInfo

The NSPDFInfo object describing the parameters to be used when creating the PDF file.

docWindow

The window in which the PDF panel will be presented.

completionHandler

The block called when the user dismisses the PDF panel.

Discussion

This method presents a slightly different PDF panel depending on whether the NSPDFPanelRequestsParentDirectory constant is set. If the user dismisses the panel without canceling it, this method updates the NSPDFInfo object with any changes the user makes.