Author: matt
Date: 2012-04-21 04:13:10 -0700 (Sat, 21 Apr 2012)
New Revision: 9365
Log:
Fl::arg now removes a command line argument that is added by Xcode. This will
help "Demo" to run again
Modified:
branches/branch-1.3/src/Fl_arg.cxx
Modified: branches/branch-1.3/src/Fl_arg.cxx
===================================================================
--- branches/branch-1.3/src/Fl_arg.cxx 2012-04-21 03:41:36 UTC (rev 9364)
+++ branches/branch-1.3/src/Fl_arg.cxx 2012-04-21 11:13:10 UTC (rev 9365)
@@ -173,9 +173,13 @@
#ifdef __APPLE__
// The Finder application in MacOS X passes the "-psn_N_NNNNN" option
// to all apps...
- else if (strncmp(s, "psn_", 4) == 0) {
+ else if (strcmp(s, "NSDocumentRevisionsDebugMode") == 0) {
i++;
+ if (argv[i]) i++;
return 1;
+ } else if (strncmp(s, "psn_", 4) == 0) {
+ i++;
+ return 1;
}
#endif // __APPLE__
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit