Instance Method

stringForKey:inTable:

Returns the first occurrence of a value associated with specified key.

Declaration

- (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.

See Also

Deprecated Methods

- isKey:inTable:

Returns a Boolean value indicating whether the specified key is in the specified table.

Deprecated
- stringListForKey:inTable:

Returns an array of strings, one for each occurrence, associated with specified key.

Deprecated
- booleanForKey:inTable:

Returns the Boolean value associated with the specified key.

Deprecated
- floatForKey:inTable:

Returns the floating-point value associated with the specified key.

Deprecated
- intForKey:inTable:

Returns the integer value associated with the specified key.

Deprecated
- rectForKey:inTable:

Returns the rectangle associated with the specified key.

Deprecated
- sizeForKey:inTable:

Returns the size data type associated with the specified key.

Deprecated
- statusForTable:

Returns the status of the specified table.

Deprecated
NSPrinterTableStatus

These constants describe the state of a printer information table stored by an NSPrinter object.

- acceptsBinary

Deprecated.

Deprecated
- domain

Deprecated.

Deprecated
- host

Deprecated.

Deprecated
- imageRectForPaper:

Deprecated.

Deprecated
- isColor

Deprecated.

Deprecated
- isFontAvailable:

Deprecated.

Deprecated
- isOutputStackInReverseOrder

Deprecated.

Deprecated
- note

Deprecated.

Deprecated