<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.8.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSNib/instantiateNibWithExternalNameTable:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSNib(im)instantiateNibWithExternalNameTable:"
  },
  "title" : "instantiateNibWithExternalNameTable:"
}
-->

# instantiateNibWithExternalNameTable:

Unarchives and instantiates the in-memory contents of the receiver’s nib file, creating a distinct object tree and top level objects.

```
- (BOOL) instantiateNibWithExternalNameTable:(NSDictionary *) externalNameTable;
```

## Parameters

`externalNameTable`

A dictionary containing entries for the nib file’s owner and top-level objects. See the discussion for more information.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the nib file’s contents were instantiated successfully; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

This is the primitive method for performing instantiations of a nib file. You may use this method to instantiate a nib file multiple times. Each instantiation of the nib must have a distinct owner object that is responsible for the resulting object tree.

If the nib file requires an owner, the `externalNameTable` parameter must contain the object representing the nib file’s owner (associated with the `NSNibOwner` key). The parameter may optionally include an `NSMutableArray` object to be populated with the top-level objects nib file (associated with the `NSNibTopLevelObjects` key).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)