Instance Method

initWithDictionary:

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

Declaration

- (instancetype)initWithDictionary:(NSDictionary<NSPrintInfoAttributeKey, id> *)attributes;

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

sharedPrintInfo

Returns the shared NSPrintInfo object.