diff --git a/test/Makefile b/test/Makefile index 5732a35e8..1a97bbceb 100644 --- a/test/Makefile +++ b/test/Makefile @@ -322,6 +322,8 @@ colbrowser$(EXEEXT): colbrowser.o echo Linking $@... $(CXX) $(ARCHFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ colbrowser.o $(LINKFLTKFORMS) $(LDLIBS) $(OSX_ONLY) ../fltk-config --post $@ + $(OSX_ONLY) mkdir -p colbrowser.app/Contents/Resources + $(OSX_ONLY) cp -f rgb.txt colbrowser.app/Contents/Resources/ color_chooser$(EXEEXT): color_chooser.o diff --git a/test/colbrowser.cxx b/test/colbrowser.cxx index b167d6539..c5989b2d9 100644 --- a/test/colbrowser.cxx +++ b/test/colbrowser.cxx @@ -62,8 +62,8 @@ int main(int argc, char *argv[]) create_form_cl(); -#ifdef USING_XCODE - // Xcode apps do not set the current directory +#ifdef __APPLE__ + // search for rgb.txt within the bundle strcpy(dbname, argv[0]); char *slash = strrchr(dbname, '/'); if (slash)