Adding custom menu items to the sidebar

You can add custom menu items in the sidebar below the existing default Gallery and Recently Viewed items.

Perform this task by editing the file MyConfiguration.plist in the copy of the DeploymentKitApp in Xcode on your computer.

Procedure

  1. In the file MyConfiguration.plist, in the Property List view , find and expand the key labelled CustomMenuItems.

    The following example shows two custom menu items.

    Key Type Value
    CustomMenuItems Array (2 items)
    Item 0 Dictionary (4 items)
    icon String string: my_menuitem_icon1_filename
    iconSelected String string: my_menuitem_icon1selected_filename
    title String setting: my_test_menuitem1_title
    url String http://spotfire.tibco.com
    Item 1 Dictionary (4 items)
    icon String test_menuitem_icon2.png
    iconSelected String test_menuitem_icon2_active.png
    title String My Test Menuitem 2
    url String http://www.google.com
    Note: In the Source Code view, this section appears as follows.
    <dict>
       <key>icon</key>
       <string>string: my_menuitem_icon1_filename</string>
       <key>iconSelected</key>
       <string>string: my_menuitem_icon1selected_filename</string>
       <key>title</key>
       <string>setting: my_test_menuitem1_title</string>
       <key>url</key>
       <string>http://spotfire.tibco.com</string>
    </dict>
    <dict>
       <key>icon</key>
       <string>test_menuitem_icon2.png</string>
       <key>iconSelected</key>
       <string>test_menuitem_icon2_active.pn</string>
       <key>title</key>
       <string>My Test Menuitem 2</string>
       <key>url</key>
       <string>http://www.google.com</string>
    </dict>
    
    These entries specify the start of an array of custom menu items.
  2. For each array, add custom menu item keys and values, as shown in the above sample.

    Each Dictionary block defines a custom menu item. You can add more of these blocks, one for each of the menu items you want to add to the sidebar, under the array.

Result

Your custom menu items display a custom icon and title, and when they are selected by the user, they can load the specified URL, as shown in the example.