This class implements a self-contained Add Files dialog box, or dispatches call to Navigation Services, if present. It produces an LArray of FSSpec records. A demonstration application is included.
The class implements an improved user interface compared to the one supplied by the Standard File Manager (for example, page up will now actually move the current selection, rather than just the visible part of the list!) (Mac HIG Purists: please feel free to burn me in effigy at your leisure)
It has a number of options:
- You can include a list of files to be supressed (like CW does for files that are already in your project).
- You can supress showing folders (although this inhibits navigation).
- You can supress checking/translating files (this supresses MacEasyOpen, locked file alerts, etc.).
- You can choose to add folders/volumes, which puts up a button that has the name of the currently selected item and adds it to the list when pushed (as opposed to opening it, if it's a folder/volume). This functionality is not implemented in Navigation Services, so currently you only get the Standard File version. Watch for updates to include this in NS.
Version 1.5.0 adds: displaying icons at the current screen depth in the added files list.
Version 1.6.0 adds: defining starting directory locations, selectable alias resolution, and dispatching to Navigation Services, if present.
Version 1.6.1 fixes some small bugs and adds switches for customizing NavServices' behavior.
Note that this needs some serious work to handle correct dispatching for Carbon.