• 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: Help Viewer not scrolling to anchors: Workaround
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Help Viewer not scrolling to anchors (From: Jerry Krinock <email@hidden>)

  • Prev by Date: How best to cache/preload an NSImage?
  • Next by Date: SQL and XML stores behave differently with sort descriptor
  • Previous by thread: Re: Help Viewer not scrolling to anchors
  • Next by thread: Re: Something like runUntilDate in CoreFoundation
  • Index(es):
    • Date
    • Thread