• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Last Apple Help question (hopefully)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Last Apple Help question (hopefully)


  • Subject: Re: Last Apple Help question (hopefully)
  • From: Andy Bettis <email@hidden>
  • Date: Wed, 16 Sep 2009 15:29:47 +0100

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@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


References: 
 >Last Apple Help question (hopefully) (From: Andy Bettis <email@hidden>)
 >Re: Last Apple Help question (hopefully) (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Upgrading NSDocument format, best practice
  • Next by Date: Re: Upgrading NSDocument format, best practice
  • Previous by thread: Re: Last Apple Help question (hopefully)
  • Next by thread: NSNotificationQueue : NSPostingStyle : Definitions for Dummies
  • Index(es):
    • Date
    • Thread