One Quickie


Adding AppleHelp (Xcode->General)
  1. Create a "AppName Help" directory in your English.lproj.

  2. Add an index.html Put in these headers:
    <head>
      <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
      <title>AppName Help</title>
      <meta name="AppleTitle" content="AppName Help">
      <meta name="AppleIcon" content="AppName%20Help/images/icon-name.png">
      <meta name="AppleFont" content="Lucida Grande,Helvetica,Arial">
      <meta name="AppleSearchResultsFont" content="Lucida Grande,Geneva,Arial">
      <meta name="robots" content="noindex">
    </head>
    
    Along with your actual help content.

  3. Drag the AppName Help directory into your XCode project. When Adding, make sure "Copy items into destination group's folder" is unchecked, and select "Create Folder References for any add folders". You wnat XCode to preserve your AppName Help directory.

  4. Add these to your Info.plist:
    <key>CFBundleHelpBookFolder</key>
    <string>AppName Help</string>
    <key>CFBundleHelpBookName</key>
    <string>AppName Help</string>
    

  5. Build, run, and cross your fingers. If Help.app is already running, you may want to exit it.



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com