Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems adding help bundle to Mac app in Xcode 5

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

  • I know this worked because I'm seeing the (Base) and (English) indicators within Xcode

5: Added plist entry CFBundleHelpBookFolder and set it to 'Helpbook'

6: Added plist entry CFBundleHelpBookName and set it to 'TestHelpBuild Help'

enter image description here

7: Went into the index.html file for both the base and English lprog versions and added:

  • meta name="AppleTitle" content=“TestHelpBuild Help">
  • meta name="AppleIcon" content=“Helpbook/icon_16x16.png">
  • dropped initial less than sign so you could see the tag in the post
  • added them within the tag along with another meta name
    generated by iWeb

enter image description here

8: Ran Help Indexer over both Helpdesk directories

  • Got some errors but got a .helpindex file
  • Not sure what to think about that
  • Help Indexer didn't like the meta names added above
  • Worked ok without them

Clicking on the app menu entry to bring up 'app-name Help' shows me a box with no topics.

enter image description here

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...

File structure of the app

And here's the actual file structure via Finder...

enter image description here

Thanks in advance.

like image 697
joseph ruth Avatar asked Apr 24 '26 23:04

joseph ruth


1 Answers

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.

like image 165
joseph ruth Avatar answered Apr 28 '26 07:04

joseph ruth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!