Deprecated NSPrinter Methods

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

Deprecated in OS X v10.2

printerWithName:domain:includeUnavailable:

Deprecated. (Deprecated in OS X v10.2.)

+ (NSPrinter *)printerWithName:(NSString *)name domain:(NSString *)domain includeUnavailable:(BOOL)includeUnavailable
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.2.
Declared In
NSPrinter.h

acceptsBinary

Deprecated. (Deprecated in OS X v10.2.)

- (BOOL)acceptsBinary
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.2.
Declared In
NSPrinter.h

domain

Deprecated. (Deprecated in OS X v10.2.)

- (NSString *)domain
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.2.
Declared In
NSPrinter.h

host

Deprecated. (Deprecated in OS X v10.2.)

- (NSString *)host
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.2.
Declared In
NSPrinter.h

imageRectForPaper:

Deprecated. (Deprecated in OS X v10.2.)

- (NSRect)imageRectForPaper:(NSString *)paperName
Discussion

If used, it attempts to determine and return the bounds of the imageable area for a particular paper named paperName, but the result is not completely reliable.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.2.
Declared In
NSPrinter.h

isColor

Deprecated. (Deprecated in OS X v10.2.)

- (BOOL)isColor
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.2.
Declared In
NSPrinter.h

isFontAvailable:

Deprecated. (Deprecated in OS X v10.2.)

- (BOOL)isFontAvailable:(NSString *)faceName
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.2.
Declared In
NSPrinter.h

isOutputStackInReverseOrder

Deprecated. (Deprecated in OS X v10.2.)

- (BOOL)isOutputStackInReverseOrder
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.2.
Declared In
NSPrinter.h

note

Deprecated. (Deprecated in OS X v10.2.)

- (NSString *)note
Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.2.
Declared In
NSPrinter.h

Deprecated in OS X v10.9

booleanForKey:inTable:

Returns the Boolean value associated with the specified key. (Deprecated in OS X v10.9.)

- (BOOL)booleanForKey:(NSString *)key inTable:(NSString *)table
Parameters
key

The key whose value you want.

table

The name of a table from the printer's PPD file.

Return Value

The Boolean value associated with the key. Returns NO if the key is not in the table or the receiver lacks a PPD file.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSPrinter.h

floatForKey:inTable:

Returns the floating-point value associated with the specified key. (Deprecated in OS X v10.9.)

- (float)floatForKey:(NSString *)key inTable:(NSString *)table
Parameters
key

The key whose value you want.

table

The name of a table from the printer's PPD file.

Return Value

The floating-point value. Returns 0.0 if the key is not in the table or the receiver lacks a PPD file.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSPrinter.h

intForKey:inTable:

Returns the integer value associated with the specified key. (Deprecated in OS X v10.9.)

- (int)intForKey:(NSString *)key inTable:(NSString *)table
Parameters
key

The key whose value you want.

table

The name of a table from the printer's PPD file.

Return Value

The integer value. Returns 0 if the key is not in the table or the receiver lacks a PPD file.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSPrinter.h

isKey:inTable:

Returns a Boolean value indicating whether the specified key is in the specified table. (Deprecated in OS X v10.9.)

- (BOOL)isKey:(NSString *)key inTable:(NSString *)table
Parameters
key

The key whose value you want.

table

The name of a table from the printer's PPD file.

Return Value

YES if the key is in the table; otherwise, NO.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSPrinter.h

rectForKey:inTable:

Returns the rectangle associated with the specified key. (Deprecated in OS X v10.9.)

- (NSRect)rectForKey:(NSString *)key inTable:(NSString *)table
Parameters
key

The key whose value you want.

table

The name of a table from the printer's PPD file.

Return Value

The rectangle value. Returns NSZeroRect if the key is not in the table or the receiver lacks a PPD file.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSPrinter.h

sizeForKey:inTable:

Returns the size data type associated with the specified key. (Deprecated in OS X v10.9.)

- (NSSize)sizeForKey:(NSString *)key inTable:(NSString *)table
Parameters
key

The key whose value you want.

table

The name of a table from the printer's PPD file.

Return Value

The size value. Returns NSZeroSize if the key is not in the table or the receiver lacks a PPD file.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSPrinter.h

statusForTable:

Returns the status of the specified table. (Deprecated in OS X v10.9.)

- (NSPrinterTableStatus)statusForTable:(NSString *)table
Parameters
table

The name of a table from the printer's PPD file.

Return Value

One of the return values described in “Constants.”

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSPrinter.h

stringForKey:inTable:

Returns the first occurrence of a value associated with specified key. (Deprecated in OS X v10.9.)

- (NSString *)stringForKey:(NSString *)key inTable:(NSString *)table
Parameters
key

The key whose value you want.

table

The name of a table from the printer's PPD file.

Return Value

The value for the specified key, or nil if the key is not in the table. The returned string may also be empty.

Discussion

If key is a main keyword only, and if that keyword has options in the PPD file, this method returns an empty string. Use stringListForKey:inTable: to retrieve the values for all occurrences of a main keyword.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSPrinter.h

stringListForKey:inTable:

Returns an array of strings, one for each occurrence, associated with specified key. (Deprecated in OS X v10.9.)

- (NSArray *)stringListForKey:(NSString *)key inTable:(NSString *)table
Parameters
key

The key whose value you want.

table

The name of a table from the printer's PPD file.

Return Value

An array of NSString objects, each containing a value associated with the specified key. Returns nil if the key is not in the table.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.9.
Declared In
NSPrinter.h