<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSHelpManager/registerBooks(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSHelpManager(im)registerBooksInBundle:"
  },
  "title" : "registerBooks(in:)"
}
-->

# registerBooks(in:)

Registers one or more help books in the given bundle.

```
func registerBooks(in bundle: Bundle) -> Bool
```

## Parameters

`bundle`

The bundle for additional help books. Books in the main bundle are automatically registered.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if registration is successful, <doc://com.apple.documentation/documentation/Swift/false> if the bundle doesn’t contain any help books or if registration fails.

## Discussion

You use `registerBooksInBundle:` to register help books in, for example, a plug-in bundle. The `Info.plist` in the bundle should contain a help book directory path, which specifies one or more folders containing help books.

The main bundle is automatically registered by [`openHelpAnchor(_:inBook:)`](/documentation/AppKit/NSHelpManager/openHelpAnchor(_:inBook:)) and [`find(_:inBook:)`](/documentation/AppKit/NSHelpManager/find(_:inBook:)).

---

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)