---
title: mainNibName
framework: preferencepanes
role: symbol
role_heading: Instance Property
path: preferencepanes/nspreferencepane/mainnibname
---

# mainNibName

The name of the preference pane’s nib file.

## Declaration

```swift
var mainNibName: String { get }
```

## Discussion

Discussion The name should not include the .nib extension. The default implementation returns the value of the NSMainNibFile key in the bundle’s information property list. If the key does not exist, it returns a default value of @”Main”.

## See Also

### Getting the Bundle Information

- [bundle](preferencepanes/nspreferencepane/bundle.md)
- [mainView](preferencepanes/nspreferencepane/mainview.md)
