--- np2/macosx/dialog/dialog.cpp 2004/01/31 19:45:26 1.8 +++ np2/macosx/dialog/dialog.cpp 2005/05/20 17:25:03 1.10 @@ -96,7 +96,7 @@ static pascal Boolean NavLaunchServicesF FSSpec fsSpec; int ret; char name[MAX_PATH]; - AEDesc coerceDesc = { NULL, NULL }; + AEDesc coerceDesc = { 0, 0 }; if ( filterMode == kNavFilteringBrowserList ) { if ( theItem->descriptorType != typeFSS ) { @@ -141,6 +141,9 @@ static pascal Boolean NavLaunchServicesF showItem = true; } break; + case OPEN_MIMPI: + showItem = true; + break; } } } @@ -163,9 +166,14 @@ BOOL dialog_fileselect(char *name, int s ret = FALSE; NavGetDefaultDialogCreationOptions(&optNav); optNav.clientName = CFSTR("Neko Project IIx"); - optNav.modality=kWindowModalityWindowModal; - optNav.parentWindow=parent; + if (parent) { + optNav.modality=kWindowModalityWindowModal; + optNav.parentWindow=parent; + } switch (opentype) { + case OPEN_MIMPI: + optNav.message = CFCopyLocalizedString(CFSTR("Choose MIMPI file."),"MIMPI Message"); + break; case OPEN_FONT: optNav.message = CFCopyLocalizedString(CFSTR("Choose font file."),"FontSelect Message"); break;