Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-03-13

Build Requirements: N/A

Runtime Requirements: Carbon System 7.0

View Source Code:

Download Sample (“CustomGet_unresolved_alias.zip”, 12.1K)
Download Sample (“CustomGet_unresolved_alias.dmg”, 68.9K)


This sample demonstrates how to let the user choose an alias file from an "open" dialog. The basic idea is to intercept the pseudo- item 'sfHookOpenAlias' in a CustomGetFile hook function and transform it into 'getOpen'. This causes the dialog to behave as if the user had clicked the open button. Also, we intercept the item number of a check box we have added to the dialog item template in order to allow the user to choose whether to resolve aliases. Finally, when CustomGetFile returns, we call Alert to let the user know what happened. Requirements: System 7.0 Keywords: Standard File, CustomGetFile, choosing aliases

Document Revision History

Date Notes
2003-03-13First Version

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.