Deprecated NSPrintOperation Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in OS X v10.4 and later

setShowPanels:

Sets whether the print operation should display a print panel. (Deprecated in OS X v10.4 and later. Use setShowsPrintPanel: and setShowsProgressPanel: instead.)

- (void)setShowPanels:(BOOL)flag
Parameters
flag

YES if the print operation should display a print panel; otherwise, NO.

Discussion

This method also affects whether a progress panel is presented while the operation runs. If an EPS or PDF copy operation is being performed, neither panel is displayed, regardless of the value of flag.

Availability
  • Deprecated in OS X v10.4 and later.
Declared In
NSPrintOperation.h

showPanels

Returns a Boolean value that indicates whether the print panel is to be displayed. (Deprecated in OS X v10.4 and later. Use showsPrintPanel and showsProgressPanel instead.)

- (BOOL)showPanels
Return Value

YES if the print panel is to be displayed; otherwise, NO.

Availability
  • Deprecated in OS X v10.4 and later.
Declared In
NSPrintOperation.h

Deprecated in OS X v10.5

accessoryView

Returns the accessory view used by the receiver’s print panel. (Deprecated in OS X v10.5. Use the accessoryControllers method of NSPrintPanel instead.)

- (NSView *)accessoryView
Return Value

The custom accessory view.

Discussion

You use the setAccessoryView: method to customize the default NSPrintPanel object without having to subclass NSPrintPanel or specify your own print panel object.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.5.
Declared In
NSPrintOperation.h

jobStyleHint

Returns the type of content that the print job is printing. (Deprecated in OS X v10.5. Use the jobStyleHint method of NSPrintPanel instead.)

- (NSString *)jobStyleHint
Return Value

The content description, or nil if no job style hint has been set.

Availability
  • Available in OS X v10.2 and later.
  • Deprecated in OS X v10.5.
Declared In
NSPrintOperation.h

setAccessoryView:

Sets the custom accessory view to be displayed by the receiver's print panel. (Deprecated in OS X v10.5. Use the addAccessoryController: method of NSPrintPanel instead.)

- (void)setAccessoryView:(NSView *)aView
Parameters
aView

The view to display in the print panel. You can use this view to specify additional print options.

Discussion

You can use this method to avoid subclassing NSPrintPanel or specifying your own print panel object. The print panel is automatically resized (as needed) to accommodate the accessory view when it is selected.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.5.
Declared In
NSPrintOperation.h

setJobStyleHint:

Sets the type of content that the print job is printing. (Deprecated in OS X v10.5. Use the setJobStyleHint: method of NSPrintPanel instead.)

- (void)setJobStyleHint:(NSString *)hint
Parameters
hint

A supported job style hint. Valid values for this parameter are described in the “Constants” section of the NSPrintPanel class. If this value is nil, the standard interface is used.

Discussion

This controls the set of items that appear in the Presets menu of the simplified Print panel interface presented by this operation, if it presents one.

Availability
  • Available in OS X v10.2 and later.
  • Deprecated in OS X v10.5.
Declared In
NSPrintOperation.h