Carbon


NavMenuItemSpec

Header: Navigation.h

Your application uses the NavMenuItemSpec structure to define additional items in an Open dialog box’s Show pop-up menu or a Save dialog box’s Format pop-up menu. For a description of how to add menu items, see “Customizing Type Pop-up Menus”.

struct NavMenuItemSpec {
    UInt16 version; 
    OSType menuCreator; 
    OSType menuType; 
    Str255 menuItemName; 
    char reserved[245];
};
typedef NavMenuItemSpec NavMenuItemSpecArray;

Field descriptions

version

Identifies the version of this structure. Be sure to specify the kNavMenuItemSpecVersion constant in this field.

menuCreator

A unique value set by your application. Navigation Services passes this value back to your application to identify the application type of the selected menu item.

menuType

A unique value set by your application. Navigation Services passes this value back to your application to identify the type of the selected menu item. (Values from -1 to 10 are reserved for Navigation Services.)

menuItemName

The item name that appears in the pop-up menu.

reserved

Your application uses the NavMenuItemSpec structure to define additional items in an Open dialog box’s Show pop-up menu or a Save dialog box’s Format pop-up menu. For a description of how to add menu items, see “Customizing Type Pop-up Menus”. For information about file creators and file types, see Inside Macintosh: Macintosh Toolbox Essentials.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)