简体   繁体   中英

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.

在此处输入图片说明

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM