
532 9 Chapter 25: Printing
out. Once you have done this, your application's print info ob-
ject will have the data that you have specified in your view
(and that your user has selected).
Java:
public void setAccessoryView(NSView aView;
Objective-C:
- (void) setAccessoryView- (NSView *) aView;
PDF and Clipboard Support
It is often the case that you need to produce a PDF version of
your view.
PDFOperationWithViewInsideRect
creates a
print operation that you can then run to transform a view into
PDF and returns it in an NSMutableData object. You can then
place that on the clipboard as you will see in next section.
Here is the basic ...