> On 2017 Jun 26, at 08:36, J.E. Schotsman <[email protected]> wrote:
>
> Hello,
>
> I still cannot get my help book anchors to work programmatically (using
> NSHelpManager.shared().openHelpAnchor).
For some reason, in my apps, I use the method which also passes the help book
name, and it works for me, in Objective-C:
- (void)openHelpAnchor:(NSString*)anchor {
if (!anchor) {
return;
}
NSString* bookName = [self helpBookName] ;
[[NSHelpManager sharedHelpManager] openHelpAnchor:anchor
inBook:bookName] ;
}
wherein [self helpBookName] returns the content of the meta named “AppleTitle"
in the <head> of the index.html of my help book, for example:
<meta name="AppleTitle" content=“My Help Book" />
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]