epsOperation(with:inside:to:)
Creates and returns a new print operation object ready to control the copying of EPS graphics from the specified view.
Declaration
class func epsOperation(with view: NSView, inside rect: NSRect, to data: NSMutableData?) -> NSPrintOperationParameters
- view:
The view containing the data to be turned into EPS data.
- rect:
The portion of the view (specified in points in the view’s coordinate space) to be rendered as EPS data.
- data:
An empty
NSMutableDataobject. After the job is run, this object contains the EPS data.
Return Value
The new NSPrintOperation object. You must run the operation to generate the EPS data.
Discussion
The new NSPrintOperation object uses the default NSPrintInfo object. This method raises an NSPrintOperationExistsException if there is already a print operation in progress; otherwise the returned object is made the current print operation for this thread.
See Also
Related Documentation
- Printing Programming Guide for Mac
run()