---
title: "find(_:inBook:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nshelpmanager/find(_:inbook:)"
---

# find(_:inBook:)

Performs a search for the specified string in the specified book.

## Declaration

```swift
func find(_ query: String, inBook book: NSHelpManager.BookName?)
```

## Parameters

- `query`: String to search for.
- `book`: Localized help book to search. When nil, all installed help books are searched.

## Discussion

Discussion To search for a string in your bundle’s localized help book, you could use code similar to the following: NSString *locBookName = [[NSBundle mainBundle] objectForInfoDictionaryKey: @"CFBundleHelpBookName"]; [[NSHelpManager sharedHelpManager] findString:@"Hello"  inBook:locBookName]; This is a wrapper for AHRegisterHelpBook (which is called only once to register the help book specified in the application’s main bundle) and AHSearch.

## See Also

### Displaying Help

- [openHelpAnchor(_:inBook:)](appkit/nshelpmanager/openhelpanchor(_:inbook:).md)
- [NSHelpManager.AnchorName](appkit/nshelpmanager/anchorname.md)
- [NSHelpManager.BookName](appkit/nshelpmanager/bookname.md)
