Re: Add "Help" menu option for a XCode application?
Re: Add "Help" menu option for a XCode application?
- Subject: Re: Add "Help" menu option for a XCode application?
- From: Bryan Pietrzak <email@hidden>
- Date: Mon, 20 Dec 2004 09:57:11 -0600
On Dec 17, 2004, at 3:20 PM, JP Dong wrote:
Hi all,
I am a new user of Xcode. I tried to figure out how to provide help
page to an application. I learned this could be done very easily in
project builder, however, there is problem when I followed a similar
approach in Xcode:
- Created a directory, Help, which contains an index.html. Within the
index.html, I have added a metadata Apple Title.
- Add this directory to the Xcode project
- Modify the two Help-related key/value pairs in Info.plist.
When I ran the application and select "Help" menu option, the Help
Viewer started, but it displays nothing.
What else do I need to connect the "Help" menu option?
Based on the information give, I have to assume that you at least have
a properly built Help Book, that it's in the proper location in your
application bundle and that you have the proper plist keys added to it.
Unless you're *sure* of the above, I'd double check everything. Did you
use plutil on the property list? Did you try opening your HTML help
book directly in Safari or something to verify that it's HTML is ok?
Otherwise, assuming everything else is correct, is this a carbon or
cocoa app?
If Carbon then you need to register your help book manually. I just
call this early in the app:
void RegisterHelpBook(void)
{
ProcessSerialNumber psn;
FSRef file;
OSStatus err;
err = GetCurrentProcess(&psn);
if (err == noErr)
err = GetProcessBundleLocation(&psn, &file);
if (err == noErr)
err = AHRegisterHelpBook(&file);
check_noerr_string(err, "RegisterHelpBook failed");
}
Bryan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden