alexkaessner
alexkaessner

Reputation: 2908

open the local macOS help/user guide window programmatically

Is there a way to open the macOS user guide/help of a specific topic on the machine itself?

For example I want to link this article from my application to the official Apple help: https://support.apple.com/guide/mac-help/mchlp2290/mac

Instead of opening the browser I would like to open the included macOS help window. Why? Because it's offline available, natively in macOS included, translated to the users language and includes useful links.

enter image description here

Upvotes: 2

Views: 234

Answers (1)

matt
matt

Reputation: 535989

To display content in the built-in Help window, you need to include a "Help Book" in the app.

https://developer.apple.com/library/archive/documentation/Carbon/Conceptual/ProvidingUserAssitAppleHelp/user_help_intro/user_assistance_intro.html

Once you've done that, the "Help Book" can contain anchors, and you can call openHelpAnchor(_:inBook:) to open the Help window showing that anchor.

Upvotes: 1

Related Questions