Help Indexing
Help Indexing
- Subject: Help Indexing
- From: "Frank D. Engel, Jr." <email@hidden>
- Date: Thu, 13 Apr 2017 19:46:19 -0400
Hi, I am trying to create an Apple Help book. It is working if I choose
the help option from my application's Help menu, but I have some help
buttons on the interface trying to access specific pages using anchors,
and these are not working.
I generated an index using the "hiutil" command, and when I reran that
and enabled verbose output (hiutil -Cavv ...), I got a bunch of output
like this:
Contents/Resources/English.lproj/pgs/doc70.html -- Parse error: The
operation couldn’t be completed. (NSXMLParserErrorDomain error 76.)
Contents/Resources/English.lproj/pgs/doc70.html -- Parse error: Error
76, Description: The operation couldn’t be completed.
(NSXMLParserErrorDomain error 76.), Line: 124, Column: 9
Contents/Resources/English.lproj/pgs/doc70.html -- Parse error: The
operation couldn’t be completed. (NSXMLParserErrorDomain error 76.)
Contents/Resources/English.lproj/pgs/doc70.html -- Parse error: Error
76, Description: The operation couldn’t be completed.
(NSXMLParserErrorDomain error 76.), Line: 125, Column: 8
Contents/Resources/English.lproj/pgs/doc70.html -- Parse error: The
operation couldn’t be completed. (NSXMLParserErrorDomain error 5.)
Contents/Resources/English.lproj/pgs/doc70.html -- Parse error: Error 5,
Description: The operation couldn’t be completed.
(NSXMLParserErrorDomain error 76.), Line: 125, Column: 8
The pages open just fine in a web browser, but it looks like the hiutil
command is trying to parse it as XML? That obviously won't work...
these are regular HTML files, not XML.
This is what I am using in the application to access the individual
topics (this is in a method receiving "what" as a parameter):
NSString *locBookName = [[NSBundle mainBundle]
objectForInfoDictionaryKey: @"CFBundleHelpBookName"];
[[NSHelpManager sharedHelpManager] openHelpAnchor:what inBook:locBookName];
What am I missing here?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden