init(dictionary:)
Returns a printing information object initialized with the parameters in the specified dictionary.
Declaration
init(dictionary attributes: [NSPrintInfo.AttributeKey : Any])Parameters
- attributes:
The possible key-value pairs contained in
aDictionaryare 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
Related Documentation
- Printing Programming Guide for Mac
dictionary()