Initializer

init(dictionary:)

Returns an NSPrintInfo object initialized with the parameters in the specified dictionary.

Declaration

init(dictionary attributes: [NSPrintInfo.AttributeKey : Any])

Parameters

aDictionary

The possible key-value pairs contained in aDictionary are described in Constants.

Return Value

An initialized NSPrintInfo object, or nil if the object could not be created.

Discussion

This method is the designated initializer for this class. Non-object values should be stored in NSValue objects (or an appropriate subclass like NSNumber) in the dictionary. See NSNumber for a list of types which should be stored using the NSNumber class; otherwise use NSValue.

See Also

Creating a Print Info Object

class var shared: NSPrintInfo

Returns the shared NSPrintInfo object.