for NavCreateGetFileDialog/NavCreatePutFileDialog dialogs, how can i set filters on which items are visible, or at least enabled? for instance, i might wish to only allow the user to select files of the .xyz and .zyx types.
popupExtension looked like a start, but i couldn't find sufficient documentation on how to actually set it up.
i tried the following with arr containing test strings (not sure what they would actually be):
CFStringRef arr[] = {CFSTR("test1"),CFSTR("test2")};
dialogOptions.popupExtension = CFArrayCreate(NULL, (const void**) &arr, 2, NULL);
but it would cause a crash at NavDialogRun, which returned a -50 status.
i've scoured the web and found zilch, so if you have full source on a open or save function with the aforementioned filtering that compiles and works, i'd be grateful if you could post it.
popupExtension looked like a start, but i couldn't find sufficient documentation on how to actually set it up.
i tried the following with arr containing test strings (not sure what they would actually be):
CFStringRef arr[] = {CFSTR("test1"),CFSTR("test2")};
dialogOptions.popupExtension = CFArrayCreate(NULL, (const void**) &arr, 2, NULL);
but it would cause a crash at NavDialogRun, which returned a -50 status.
i've scoured the web and found zilch, so if you have full source on a open or save function with the aforementioned filtering that compiles and works, i'd be grateful if you could post it.