Re: Cocoa Help problems
Re: Cocoa Help problems
- Subject: Re: Cocoa Help problems
- From: Jerry Krinock <email@hidden>
- Date: Tue, 20 Apr 2004 19:42:28 -0700
on 04/04/20 16:46, Moray Taylor at email@hidden wrote:
>
Hi,
>
>
I have an application where the Help system no longer works, it used to
>
work fine, so I think all my CFBundle... stuff is OK.
>
>
Are there any tools to help me debug this? At the moment, the Apple
>
Help viewer just displays a blank page, it doesn't say anything in the
>
console about the problem, so at the moment, it's just trial and error.
>
Yes Moray, I believe there are no tools to help you debug it. If you have
everything correct, it will work. If you do not have everything correct,
you'll get the blank page you describe. Here is the idiom that works for
me:
1. In the <dict> of your Info.plist, must be the following two entries:
<key>CFBundleHelpBookFolder</key>
<string>MyAppDocumentation</string>
<key>CFBundleHelpBookName</key>
<string>MyApp Help</string>
or, if you are using CodeWarrior, your .plc file must contain:
key "CFBundleHelpBookFolder" value string "MyAppDocumentation"
key "CFBundleHelpBookName" value string "MyApp Help"
2. Inside MyApp/Contents/Resources/EachLanguage.lproj there should be a
folder named "MyAppDocumentation"
3. Inside this folder, there must be a file with extension .html with a
"meta" tag in the head like this
<html>
<head>
<meta NAME="AppleTitle" content="MyApp Help">
</head>
<body>
// Body for your home page of help
</body>
</html>
I think that should do it. I have also been advised that, even after fixing
this, your computer may still not give the help until you trash the cache of
your Apple Help Viewer.
Jerry
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.