new Mac file-dialog support only for 10.5 and up

svn: r12652
This commit is contained in:
Matthew Flatt 2008-11-30 18:26:25 +00:00
parent 67f29daee5
commit 3b89976e37

View File

@ -6,6 +6,13 @@
void wx_set_nav_file_types(NavDialogRef dlg, int cnt, char **exts, char *def_ext)
{
SInt32 versionMajor, versionMinor;
Gestalt(gestaltSystemVersionMajor, &versionMajor);
Gestalt(gestaltSystemVersionMinor, &versionMinor);
if ((versionMajor >= 10)
&& (versionMinor >= 5)) {
if (cnt) {
id pool = [[NSAutoreleasePool alloc] init];
id *objs;
@ -40,4 +47,5 @@ void wx_set_nav_file_types(NavDialogRef dlg, int cnt, char **exts, char *def_ext
[pool release];
}
}
}