Re: Last Apple Help question (hopefully)
Re: Last Apple Help question (hopefully)
- Subject: Re: Last Apple Help question (hopefully)
- From: Graham Cox <email@hidden>
- Date: Wed, 16 Sep 2009 21:59:31 +1000
Hi Andy,
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];
}
--Graham
On 16/09/2009, at 7:37 AM, Andy Bettis wrote:
My fellow bohemians,
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.
Apologies if this is a stupid question.
Rev. Andy
_______________________________________________
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