Sets the component types allowed in the path when the cell is editable.
- macOS 10.5+
An array of strings representing either file extensions or UTIs. Can be
nil, the default value, allowing all types.
allowed array can contain file extensions (without the period that begins the extension) or UTIs. To allow folders, include the
public identifier. To allow any type, use
nil. If the value of
allowed is an empty array, nothing is allowed. The default value is
nil, allowing all types.
If the cell is editable and its type is
NSPath, a Choose item is included to enable selection of a different path by invoking an Open panel. The allowed types are passed to the Open panel to filter out other types. The allowed types are also used with drag and drop to indicate if a drop is allowed.