Can't get my application to see my Help Folder
Can't get my application to see my Help Folder
- Subject: Can't get my application to see my Help Folder
- From: Ernest Schaal <email@hidden>
- Date: Wed, 22 Nov 2006 18:40:51 +0900
- Thread-topic: Can't get my application to see my Help Folder
Newbie Question.
I was having troubles getting Help files to read on my application, so I
have been researching the topic in the documentation and in Google, with no
success. So, I tried putting a help file on a simple application. I also
studied the contents of various applications to see what the final contents
should look like. Each time I get the same message: "Help isn't available
for ..."
I am using a simple Cocoa application for the test (RandomApp from "Cocoa
Programming for Mac OS X). The help folder is named "MyCoolApp Help" and
consists of two files (index.html and the MyCoolAppHelp.helpindex generated
by Help Indexer).
The index.html file consists of:
<html>
<head>
<meta name="AppleTitle" content="MyCoolApp Help">
</head>
<body>
<h1>Welcome to MyCoolApp's Help!</h1>
<p>Content...</p>
</body>
</html>
Here are the settings in the info.plist for CFBundleName,
CFBundleIdentifier, CFBundleHelpBookFolder, and CFBundleHelpBookName
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.RaiseApp</string>
<key>CFBundleHelpBookFolder</key>
<string>MyCoolApp Help</string>
<key>CFBundleHelpBookName</key>
<string>MyCoolApp Help</string>
I dragged the "MyCoolApp Help" folder into the Xcode project manager, under
Resources, and at the dialog box selected "Copy items into destination
group's folder (if needed)," using the Reference Type of Default and using
the Text Encoding of Western (Mac OS Roman). I selected "Recursively create
groups for any added folders" and added to the target "RandomApp."
When I build the application, the Help never works.
Unlike the "SimpleCocoaApp," I notice that the folder is not in the Product
contents. The index.html file and the MyCoolAppHelp.helpindex is there, but
not the folder itself.
What am I doing wrong?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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