I switched them to "id" and this made no difference. I logged "locBookName" and it matches what was used as the CFBundleIdentifier of the help book.

I tried clearing the cache as indicated and this made no difference.

I then noted that the Apple help on anchors uses "name" and that I have looked at other (working) help books that use "name" so tried switching them back and clearing the cache again, still no good.


On 4/17/2017 10:28, Jerome Krinock wrote:
On 2017 Apr 14, at 18:17, Frank D. Engel, Jr. <fde...@fjrhome.net> wrote:

<a name="refLayers"></a>
In my Help Book, my working anchors use `id` instead of `name`.  I forgot why.  
Example:

<h2><a id="testAgentsSmarky"></a>2.3.1 &#160;Testing Syncing in Smarky</h2>

    NSLog(@"help: '%@'", what);
    NSString *locBookName = [[NSBundle mainBundle] objectForInfoDictionaryKey: 
@"CFBundleHelpBookName"];
    [[NSHelpManager sharedHelpManager] openHelpAnchor:what inBook:locBookName];
Looks OK but you should log that locBookName too.

If neither of these suggestions fixes the problem, the next level of trouble is 
caching by Apple Help Viewer.  Try running this script, or pieces of it, in 
Terminal.app.

https://github.com/jerrykrinock/DeveloperScripts/blob/master/HelpViewerHammer.sh

I’ve not had to use it in several years, though.  Maybe Apple has fixed the 
caching.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to