Help anchors
Help anchors allow you to link to individual pages in your help content from your application. Anchors on the page are represented by the anchor target image in the left margin of the page.
Every page has a default anchor you can link to, but you can define additional anchors if you want to link to specific content. The default anchor’s name is generated by the system when you create the page, but you can change it if desired. You can view the name of any anchor target by hovering over the anchor with the mouse.
To rename an anchor (including the default):
Click the anchor target image
Enter the new name
Press OK
Right click (or ⌥ click) in the left margin next to the line you want to link to.
Choose Insert anchor… from the popup menu
Enter the name for the anchor
Press OK
Right click (or ⌥ click) the anchor you want to delete
Choose Remove anchor “anchor name” from the popup menu.
Note: you can not remove the default anchor.
Once you have defined anchors, you can link to them from code such as:
NSString* locBookName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleHelpBookName"];
[[NSHelpManager sharedHelpManager] openHelpAnchor:@“anchorname“ inBook:locBookName];
// Change anchorname to the name of the anchor you want to link to.
Copyright © 2015 - 2022 Putercraft LLC
Still need help? Please email us with any questions .