---
title: shouldCreateUI
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsdocumentcontroller/shouldcreateui
---

# shouldCreateUI

Returns a Boolean value that indicates whether the window controllers of a document should be created when the document is created.

## Declaration

```occ
- (BOOL) shouldCreateUI;
```

## Return Value

Return Value A Boolean value that indicates whether the window controllers (NSWindowController instances) of a document should be created when the document is created.

## See Also

### Deprecated Methods

- [documentForFileName:](appkit/nsdocumentcontroller/documentforfilename:.md)
- [fileExtensionsFromType:](appkit/nsdocumentcontroller/fileextensionsfromtype:.md)
- [fileNamesFromRunningOpenPanel](appkit/nsdocumentcontroller/filenamesfromrunningopenpanel.md)
- [makeUntitledDocumentOfType:](appkit/nsdocumentcontroller/makeuntitleddocumentoftype:.md)
- [makeDocumentWithContentsOfURL:ofType:](appkit/nsdocumentcontroller/makedocumentwithcontentsofurl:oftype:.md)
- [makeDocumentWithContentsOfFile:ofType:](appkit/nsdocumentcontroller/makedocumentwithcontentsoffile:oftype:.md)
- [openDocumentWithContentsOfFile:display:](appkit/nsdocumentcontroller/opendocumentwithcontentsoffile:display:.md)
- [openDocumentWithContentsOfURL:display:](appkit/nsdocumentcontroller/opendocumentwithcontentsofurl:display:.md)
- [openDocumentWithContentsOfURL:display:error:](appkit/nsdocumentcontroller/opendocumentwithcontentsofurl:display:error:.md)
- [openUntitledDocumentOfType:display:](appkit/nsdocumentcontroller/openuntitleddocumentoftype:display:.md)
- [reopenDocumentForURL:withContentsOfURL:error:](appkit/nsdocumentcontroller/reopendocumentforurl:withcontentsofurl:error:.md)
- [setShouldCreateUI:](appkit/nsdocumentcontroller/setshouldcreateui:.md)
- [typeFromFileExtension:](appkit/nsdocumentcontroller/typefromfileextension:.md)
