Reputation: 219
I'm trying to add a help bundle into my Mac app and the help viewer just can't seem to find it. I must be missing something.
Here is what I've done.
1: Created a help document in iWeb and exported it into a local desktop directory /Helpbook
2: Got a 16x16 png for an image and put it into /Helpbook (icon_16x16.png)
3: Copied the help director into the lprog directories for base and for en (base language)
4: Added those directories into the project
5: Added plist entry CFBundleHelpBookFolder and set it to 'Helpbook'
6: Added plist entry CFBundleHelpBookName and set it to 'TestHelpBuild Help'
7: Went into the index.html file for both the base and English lprog versions and added:
8: Ran Help Indexer over both Helpdesk directories
Clicking on the app menu entry to bring up 'app-name Help' shows me a box with no topics.
Anybody have any idea as to what might be wrong or areas that I might review more closely?
Here is the directory structure of the skeleton app I'm writing...
And here's the actual file structure via Finder...
Thanks in advance.
Upvotes: 3
Views: 655
Reputation: 219
Well, I got it to work and I'm not sure how.
First thing is that I made the folder name 'TestHelpBuild Help' and made sure the index file meta name was also 'TestHelpBuild Help'. Then I put those two names into the plist and, lo, my help text appeared.
This meant deleting the help folder out of the app, copying the new folder into the .lprog folders, and then re-adding it back into the app via Xcode.
If you're having trouble with this, try taking the help out an app bundle with working help and knitting it as is into your app. This will help you get the procedure straight and give you some confidence that it can work.
Upvotes: 1