Re: Help Viewer not scrolling to anchors: Workaround
Re: Help Viewer not scrolling to anchors: Workaround
- Subject: Re: Help Viewer not scrolling to anchors: Workaround
- From: Jerry Krinock <email@hidden>
- Date: Thu, 11 Aug 2005 13:35:25 -0700
It also works properly if you first open the root page of your help book,
wait for it to load, and then tell it to load at your anchor. Using a
timer, I found that 5 seconds was not sufficient, but 10 seconds did the
trick, on my Powerbook. I imagine this period is going to be machine- and
load- dependent.
Does anyone know if it is possible to get a notification or something when
Apple Help Viewer is done loading a window? I've not done much interapp
communication.
Jerry
- (IBAction)helpMyAnchor:(id)sender
{
AHGotoPage (gCFHelpBookName, CFSTR("myHelpRoot.html"), NULL);
[self performSelector:@selector(finishHelpVerify) withObject:nil
afterDelay:10.0] ;
}
- (void)finishHelpMyAnchor
{
AHLookupAnchor(gCFHelpBookName, CFSTR("myAnchor"));
}
Note 1: myAnchor does not need to be in myHelpRoot.html for this to work.
Note 2: If you don't need to work in Jaguar you can use NSHelpManager
methods instead of AH.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden