Removed compilation warnings with old Mac OS SDKs

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9798 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2013-01-16 15:25:39 +00:00
parent f37c9a1b6f
commit e1ddb7952a
+2 -2
View File
@@ -501,8 +501,8 @@ int Fl_Native_File_Chooser::runmodal()
}
if (_directory && !dir) dir = [[NSString alloc] initWithUTF8String:_directory];
if (fl_mac_os_version >= 100600) {
if (dir) [(NSSavePanel*)_panel setDirectoryURL:[NSURL fileURLWithPath:dir]];
if (fname) [(NSSavePanel*)_panel setNameFieldStringValue:fname];
if (dir) [(NSSavePanel*)_panel performSelector:@selector(setDirectoryURL) withObject:[NSURL fileURLWithPath:dir]];
if (fname) [(NSSavePanel*)_panel performSelector:@selector(setNameFieldStringValue) withObject:fname];
retval = [(NSSavePanel*)_panel runModal];
}
else {