---
title: automaticallyPreparesContent
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsobjectcontroller/automaticallypreparescontent
---

# automaticallyPreparesContent

A Boolean that shows whether the receiver automatically creates and inserts new content objects automatically when loading from a nib file.

## Declaration

```swift
var automaticallyPreparesContent: Bool { get set }
```

## Discussion

Discussion If flag is true and the receiver is not using a managed object context, prepareContent() is used to create the content object. If flag is true and a managed object context is set, the initial content is fetched from the managed object context using the current fetch predicate. The default is false.

## See Also

### Managing content

- [content](appkit/nsobjectcontroller/content.md)
- [prepareContent()](appkit/nsobjectcontroller/preparecontent().md)
