new Mac file-dialog support only for 10.5 and up
svn: r12652
This commit is contained in:
parent
67f29daee5
commit
3b89976e37
|
@ -6,6 +6,13 @@
|
||||||
|
|
||||||
void wx_set_nav_file_types(NavDialogRef dlg, int cnt, char **exts, char *def_ext)
|
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) {
|
if (cnt) {
|
||||||
id pool = [[NSAutoreleasePool alloc] init];
|
id pool = [[NSAutoreleasePool alloc] init];
|
||||||
id *objs;
|
id *objs;
|
||||||
|
@ -40,4 +47,5 @@ void wx_set_nav_file_types(NavDialogRef dlg, int cnt, char **exts, char *def_ext
|
||||||
|
|
||||||
[pool release];
|
[pool release];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user