---
title: "windowControllerDidLoadNib(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsdocument/windowcontrollerdidloadnib(_:)"
---

# windowControllerDidLoadNib(_:)

Called after one of the document’s window controllers loads its nib file.

## Declaration

```swift
func windowControllerDidLoadNib(_ windowController: NSWindowController)
```

## Parameters

- `windowController`: The window controller that loaded the nib file.

## Discussion

Discussion See the class description for NSWindowController for additional information about nib files and the file’s owner object. Typically an NSDocument subclass overrides windowNibName or makeWindowControllers(), but not both. If windowNibName is overridden, the default implementation of makeWindowControllers() will load the named nib file, making the NSDocument object the nib file’s owner. In that case, you can override windowControllerDidLoadNib(_:) and do custom processing after the nib file is loaded. The default implementation of this method does nothing.

## See Also

### Creating and Managing Window Controllers

- [makeWindowControllers()](appkit/nsdocument/makewindowcontrollers().md)
- [addWindowController(_:)](appkit/nsdocument/addwindowcontroller(_:).md)
- [removeWindowController(_:)](appkit/nsdocument/removewindowcontroller(_:).md)
- [windowControllers](appkit/nsdocument/windowcontrollers.md)
- [windowNibName](appkit/nsdocument/windownibname.md)
- [windowControllerWillLoadNib(_:)](appkit/nsdocument/windowcontrollerwillloadnib(_:).md)
- [shouldCloseWindowController(_:delegate:shouldClose:contextInfo:)](appkit/nsdocument/shouldclosewindowcontroller(_:delegate:shouldclose:contextinfo:).md)
