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.