Dear Graham,

Thanks for the tip - nice to be back in Cocoa land. There's still a couple of problems:

The title does show up on the help button - well, just the central letters as it's clipped by the button size.

I'm not sure what to use for the anchor parameter. I want to open a page called entries.html so I made the button title entries.html (and didn't worry about the appearance for now), resulting in the (by now) familiar message of 'Help Viewer cannot open this content'. I added an anchor at the top of the <body> of the file:

<a id="entries"></a>

and tried 'entries' and 'entries.html#entries' as anchor parameters, with the same 'cannot open' message in each case. I've turned on anchor indexing in Help Indexer - what am I missing?

Rev. Andy

On 16 Sep 2009, at 12:59, Graham Cox wrote:

You could use NSHelpManager instead, which is more cocoa-y.

I handle my help buttons with this, which uses the help button's title to store the help item anchor (help buttons don't have visible titles)

- (IBAction)            showHelpItemWithTitleOfSender:(id) sender
{
NSString* book = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleHelpBookName"];
        NSString* anchor = [sender title];
[[NSHelpManager sharedHelpManager] openHelpAnchor:anchor inBook:book];
}

On 16/09/2009, at 7:37 AM, Andy Bettis wrote:

My Help Book is now working fine - so much so that I've decided to add little help buttons on parts of the UI. All is well except that my call to AHGotoPage() can't find the function. What do I need to include? I know it's in AppleHelp.h but what's the format of the #include to get this, er, included.

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to