Hello all.
I have a very simple question: I have this code on my Mac box (I removed some code for the sake of brevity):
InterfacePtr<IOpenFileDialog> FileWindow(static_cast<IOpenFileDialog*>(::CreateObject(kOpenFileDialogBoss, IOpenFileDialog::kDefaultIID)))
#ifdef MACINTOSH
// Add a few file types.
FileWindow -> AddType('IDd5');
FileWindow -> AddType('IDd6');
FileWindow -> AddType('IDd7');
FileWindow -> AddType('DATA');
FileWindow -> SetNavDlgOpFlags(kNavDontAddTranslateItems | kNavAllowStationery | kNavAllowPreviews | kNavDontAutoTranslate | kNavAllowMultipleFiles);
#else
...
This code works wonderfully for InDesign files CS3 and above, provided they have the right type (some files ported from a Windows box across a server may have a file type of 'DATA'), but if the file does not happen to have one of these types, (for example, a CS file happens to get mixed in with the newer files) it is greyed out and cannot be selected.
Is there a way to tell IOpenFileDialog to allow all files to be selectable?
This question applies to all Mac versions.
TIA!
R,
John