Author: manolo
Date: 2013-01-16 07:25:39 -0800 (Wed, 16 Jan 2013)
New Revision: 9798
Log:
Removed compilation warnings with old Mac OS SDKs

Modified:
   branches/branch-1.3/src/Fl_Native_File_Chooser_MAC.mm

Modified: branches/branch-1.3/src/Fl_Native_File_Chooser_MAC.mm
===================================================================
--- branches/branch-1.3/src/Fl_Native_File_Chooser_MAC.mm       2013-01-16 
12:50:29 UTC (rev 9797)
+++ branches/branch-1.3/src/Fl_Native_File_Chooser_MAC.mm       2013-01-16 
15:25:39 UTC (rev 9798)
@@ -501,8 +501,8 @@
   }
   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 {

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to