Hi,
I wonder if it possible 'easily' to enhance tm_dialog in a way that one can also use it as FileSelect dialog, like CocoaDialog it does, in conjunction with an user-defined nib-file to append a CustomView to the predefined NSOpenPanel.
For details have a look at: http://developer.apple.com/documentation/Cocoa/Conceptual/AppFileMgmt/ Articles/ManagingAccessoryViews.html
E.g.:
tm_dialog -f
invokes a normal cocoa-based file select dialog.
tm_dialog -f myextension.nib
invokes a normal cocoa-based file select dialog and appends myextension.nib as an Accessory View.
tm_dialog -f -p THEPLIST
to set the current dir, which files are allowed to select, multiple file select yes/no, dialog title, etc.
The result is a plist containing the filename and, if an Accessory View is specified, the selections of it.
Hans