# cock.setDefault

Restores specified default layout, permanently erasing previously defined bindings.

## Function

### Synopsis

    cock.setDefault ( self, default )

### Arguments

`table self`
  An object to use.
`string default`
  Optional. One of the defaults created earlier. Will revert to control.defaultLayout field if not provided.

## See also

- cock.setControls
- Common Organization of Controls Kit Fields
- Common Organization of Controls Kit Manual
- Common Organization of Controls Kit

Category:

- Functions