1

How to open the Help Book of a MacOS app?

I found showHelp() but that's not in scope in my app.

showContextHelp() is in scope but that doesn't open the Help Book.

showHelp() docs: https://developer.apple.com/documentation/appkit/nsapplication/1500910-showhelp

Mikeumus
  • 3,570
  • 9
  • 40
  • 65
  • 1
    Does this answer your question? [Anchors in help-book not working](https://stackoverflow.com/questions/14913937/anchors-in-help-book-not-working) – Willeke Aug 31 '20 at 07:04
  • @Willeke, yeah I was there before here. helioz's comment linked in my answer worked for me. Thanks for the assist! – Mikeumus Aug 31 '20 at 20:15

1 Answers1

1

The answer by @helioz here worked:

To call an anchor is swift 4: NSHelpManager.shared.openHelpAnchor(NSHelpManager.AnchorName(rawValue:"MyAnchor"), inBook: NSHelpManager.BookName(rawValue: "com.company.App.help") ) – helioz Mar 13 '18 at 12:59

From: Anchors in help-book not working

Mikeumus
  • 3,570
  • 9
  • 40
  • 65