---
title: "sizeForKey:inTable:"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsprinter/sizeforkey:intable:"
---

# sizeForKey:inTable:

Returns the size data type associated with the specified key.

## Declaration

```occ
- (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

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

## See Also

### Deprecated

- [isKey:inTable:](appkit/nsprinter/iskey:intable:.md)
- [stringForKey:inTable:](appkit/nsprinter/stringforkey:intable:.md)
- [stringListForKey:inTable:](appkit/nsprinter/stringlistforkey:intable:.md)
- [booleanForKey:inTable:](appkit/nsprinter/booleanforkey:intable:.md)
- [floatForKey:inTable:](appkit/nsprinter/floatforkey:intable:.md)
- [intForKey:inTable:](appkit/nsprinter/intforkey:intable:.md)
- [rectForKey:inTable:](appkit/nsprinter/rectforkey:intable:.md)
- [statusForTable:](appkit/nsprinter/statusfortable:.md)
- [NSPrinter.TableStatus](appkit/nsprinter/tablestatus.md)
- [printerWithName:domain:includeUnavailable:](appkit/nsprinter/printerwithname:domain:includeunavailable:.md)
- [acceptsBinary](appkit/nsprinter/acceptsbinary.md)
- [domain](appkit/nsprinter/domain.md)
- [host](appkit/nsprinter/host.md)
- [imageRectForPaper:](appkit/nsprinter/imagerectforpaper:.md)
- [isColor](appkit/nsprinter/iscolor.md)
