Modal-Dialog Filter Functions
TheCustomGetFilePreviewroutine presents an Open dialog box to the user and allows the user to view file previews. This function differs fromStandardGetFilePreviewin that you can provide a custom dialog template and functions to support your template. This function corresponds to the existingCustomGetFileroutine.You specify your modal-dialog filter function in the
filterProcparameter. Your modal-dialog filter function gives you greater control over the interface presented to the user. See Inside Macintosh: Files for more information about using modal-dialog filter functions withCustomGetFile.
- Note
- A modal-dialog filter function controls events closer to their source by filtering the events received from the Event Manager. The Standard File Package itself contains an internal modal-dialog filter function that maps keypresses and other user input onto the equivalent dialog box items. If you also want to process events at this level, you can supply your own filter function.
![]()
Subtopics
- MyModalFilter