Carbon


NavTypeList

Header: Navigation.h

Your application can use the NavTypeList structure to define a list of file types that your application is capable of opening. Your application passes a pointer to this list to Navigation Services functions that display Open or Save dialog boxes. You may create this list dynamically or reference a Translation Manager 'open' resource.For more information, see “Providing File Opening Options”.

struct NavTypeList {
    OSType componentSignature; 
    SInt16 reserved; 
    SInt16 osTypeCount; 
    OSType osType[1];
};
typedef NavTypeList NavTypeListPtr;

Field descriptions

componentSignature

A four character code specifying your application signature. If you want your application to be able to open all files of the types you specify in the osType field (regardless of which application created them), specify the kNavGenericSignature constant in this field.

reserved

A number indicating how many file types are defined in the osType field.

osTypeCount

A list of file types your application can open.

osType

Your application uses the NavTypeList structure to define a list of file types that your application is capable of opening. Your application passes a pointer to this list to Navigation Services functions that display Open or Save dialog boxes. You may create this list dynamically or reference a Translation Manager 'open' resource.

For a description of how to use the NavTypeList structure, see “Providing File Opening Options”. For more information on the 'open' resource and the Translation Manager, see the “Translation Manager” chapter in Inside Macintosh: More Macintosh Toolbox.


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