• 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
Registering and opening a help book located outside an application bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Registering and opening a help book located outside an application bundle


  • Subject: Registering and opening a help book located outside an application bundle
  • From: Michael Gozzo <email@hidden>
  • Date: Mon, 10 Aug 2009 10:23:30 -0400

Good day everybody,

I'm writing an application that needs to access a help bundle with
several localizations that is stored outside of the main application's
bundle. To do this, I'm currently doing the following:

1. Get a CFURLRef to the location of the help bundle in the filesystem.
2. Get a FSRef from the CFURLRef
3. Register the help book by calling AHRegisterHelpBook()
4. If this didn't fail, retrieve the localized value of
CFBundleHelpBookName from the NSBundle object that wraps the help
bundle.
5. Finally, use AHLookupAnchor() to open up a constant anchor in the
help book whose name I retrieved in (4).

This seems to work perfectly under Leopard, I was wondering if I am
doing anything in this sequence of 5 steps that can cause an issue
when running on 10.6 or if I'm not going about this in the best way
possible under 10.5.

Any help you Cocoa wizards could offer would be greatly appreciated!

Thanks in advance!

Michael
_______________________________________________

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

  • Prev by Date: Re: Maintaining an ordered array of attributes in an NSTextStorage subclass
  • Next by Date: CoreData object graph gets confused
  • Previous by thread: FreeTDS Cocoa Sample?
  • Next by thread: CoreData object graph gets confused
  • Index(es):
    • Date
    • Thread