Updated Xcode project files for clipboard API
authorSam Lantinga
Thu, 08 Jul 2010 06:16:27 -0700
changeset 45010cf025066b6f
parent 4500 eff4e88cc1e8
child 4502 b3540fa08474
Updated Xcode project files for clipboard API
Fixed generation of SDL_revision.h when hg is in the path set up in .bash_profile
Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj
Xcode/SDL/SDL.xcodeproj/project.pbxproj
src/video/cocoa/SDL_cocoaclipboard.m
     1.1 --- a/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Thu Jul 08 05:43:34 2010 -0700
     1.2 +++ b/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Thu Jul 08 06:16:27 2010 -0700
     1.3 @@ -67,6 +67,9 @@
     1.4  		043DD77110FD8A0000DED673 /* SDL_blendfillrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 043DD76D10FD8A0000DED673 /* SDL_blendfillrect.c */; };
     1.5  		043DD77210FD8A0000DED673 /* SDL_drawrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 043DD76E10FD8A0000DED673 /* SDL_drawrect.c */; };
     1.6  		04461DEE0EA76BA3006C462D /* SDL_haptic.h in Headers */ = {isa = PBXBuildFile; fileRef = 04461DED0EA76BA3006C462D /* SDL_haptic.h */; settings = {ATTRIBUTES = (Public, ); }; };
     1.7 +		044E5FB511E6069F0076F181 /* SDL_clipboard.h in Headers */ = {isa = PBXBuildFile; fileRef = 044E5FB311E6069F0076F181 /* SDL_clipboard.h */; };
     1.8 +		044E5FB611E6069F0076F181 /* SDL_input.h in Headers */ = {isa = PBXBuildFile; fileRef = 044E5FB411E6069F0076F181 /* SDL_input.h */; };
     1.9 +		044E5FB811E606EB0076F181 /* SDL_clipboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 044E5FB711E606EB0076F181 /* SDL_clipboard.c */; };
    1.10  		0463873F0F0B5B7D0041FD65 /* SDL_blendline.c in Sources */ = {isa = PBXBuildFile; fileRef = 046387370F0B5B7D0041FD65 /* SDL_blendline.c */; };
    1.11  		046387400F0B5B7D0041FD65 /* SDL_blendpoint.c in Sources */ = {isa = PBXBuildFile; fileRef = 046387380F0B5B7D0041FD65 /* SDL_blendpoint.c */; };
    1.12  		046387410F0B5B7D0041FD65 /* SDL_blendrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 046387390F0B5B7D0041FD65 /* SDL_blendrect.c */; };
    1.13 @@ -313,6 +316,9 @@
    1.14  		043DD76D10FD8A0000DED673 /* SDL_blendfillrect.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_blendfillrect.c; sourceTree = "<group>"; };
    1.15  		043DD76E10FD8A0000DED673 /* SDL_drawrect.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_drawrect.c; sourceTree = "<group>"; };
    1.16  		04461DED0EA76BA3006C462D /* SDL_haptic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_haptic.h; path = ../../include/SDL_haptic.h; sourceTree = SOURCE_ROOT; };
    1.17 +		044E5FB311E6069F0076F181 /* SDL_clipboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_clipboard.h; path = ../../include/SDL_clipboard.h; sourceTree = SOURCE_ROOT; };
    1.18 +		044E5FB411E6069F0076F181 /* SDL_input.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_input.h; path = ../../include/SDL_input.h; sourceTree = SOURCE_ROOT; };
    1.19 +		044E5FB711E606EB0076F181 /* SDL_clipboard.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_clipboard.c; sourceTree = "<group>"; };
    1.20  		046387370F0B5B7D0041FD65 /* SDL_blendline.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_blendline.c; sourceTree = "<group>"; };
    1.21  		046387380F0B5B7D0041FD65 /* SDL_blendpoint.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_blendpoint.c; sourceTree = "<group>"; };
    1.22  		046387390F0B5B7D0041FD65 /* SDL_blendrect.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_blendrect.c; sourceTree = "<group>"; };
    1.23 @@ -826,19 +832,23 @@
    1.24  		FD99B8BC0DD52E5C00FB1D6B /* Public Headers */ = {
    1.25  			isa = PBXGroup;
    1.26  			children = (
    1.27 -				04F2AF531104ABC300D6DDF7 /* SDL_assert.h */,
    1.28 -				04B2ECE61025CE4800F9BC5F /* SDL_atomic.h */,
    1.29  				FD99B8CC0DD52EB400FB1D6B /* begin_code.h */,
    1.30  				FD99B8CD0DD52EB400FB1D6B /* close_code.h */,
    1.31 +				FD99B8F50DD52EB400FB1D6B /* SDL.h */,
    1.32 +				04F2AF531104ABC300D6DDF7 /* SDL_assert.h */,
    1.33 +				04B2ECE61025CE4800F9BC5F /* SDL_atomic.h */,
    1.34  				FD99B8CF0DD52EB400FB1D6B /* SDL_audio.h */,
    1.35 +				044E5FB311E6069F0076F181 /* SDL_clipboard.h */,
    1.36  				FD99B8D10DD52EB400FB1D6B /* SDL_compat.h */,
    1.37 +				04B2ED061025CF9E00F9BC5F /* SDL_config.h */,
    1.38  				04EC8B501025D12900431D42 /* SDL_config_iphoneos.h */,
    1.39 -				04B2ED061025CF9E00F9BC5F /* SDL_config.h */,
    1.40  				FD99B8DA0DD52EB400FB1D6B /* SDL_copying.h */,
    1.41  				FD99B8DB0DD52EB400FB1D6B /* SDL_cpuinfo.h */,
    1.42 +				FD99B8F60DD52EB400FB1D6B /* SDL_endian.h */,
    1.43  				FD99B8DC0DD52EB400FB1D6B /* SDL_error.h */,
    1.44  				FD99B8DD0DD52EB400FB1D6B /* SDL_events.h */,
    1.45  				04461DED0EA76BA3006C462D /* SDL_haptic.h */,
    1.46 +				044E5FB411E6069F0076F181 /* SDL_input.h */,
    1.47  				FD99B8DE0DD52EB400FB1D6B /* SDL_joystick.h */,
    1.48  				FD99B8DF0DD52EB400FB1D6B /* SDL_keyboard.h */,
    1.49  				FD99B8E00DD52EB400FB1D6B /* SDL_keysym.h */,
    1.50 @@ -865,8 +875,6 @@
    1.51  				FD99B8F20DD52EB400FB1D6B /* SDL_types.h */,
    1.52  				FD99B8F30DD52EB400FB1D6B /* SDL_version.h */,
    1.53  				FD99B8F40DD52EB400FB1D6B /* SDL_video.h */,
    1.54 -				FD99B8F50DD52EB400FB1D6B /* SDL.h */,
    1.55 -				FD99B8F60DD52EB400FB1D6B /* SDL_endian.h */,
    1.56  			);
    1.57  			name = "Public Headers";
    1.58  			sourceTree = "<group>";
    1.59 @@ -1023,6 +1031,7 @@
    1.60  		FDA682420DF2374D00F98A1A /* video */ = {
    1.61  			isa = PBXGroup;
    1.62  			children = (
    1.63 +				044E5FB711E606EB0076F181 /* SDL_clipboard.c */,
    1.64  				FD689F090E26E5D900F90B21 /* uikit */,
    1.65  				FDA685F40DF244C800F98A1A /* dummy */,
    1.66  				0495E6850E97408800152DFE /* SDL_glfuncs.h */,
    1.67 @@ -1173,6 +1182,8 @@
    1.68  				043DD77010FD8A0000DED673 /* SDL_alphamult.h in Headers */,
    1.69  				04F2AF541104ABC300D6DDF7 /* SDL_assert.h in Headers */,
    1.70  				006E9888119552DD001DE610 /* SDL_rwopsbundlesupport.h in Headers */,
    1.71 +				044E5FB511E6069F0076F181 /* SDL_clipboard.h in Headers */,
    1.72 +				044E5FB611E6069F0076F181 /* SDL_input.h in Headers */,
    1.73  			);
    1.74  			runOnlyForDeploymentPostprocessing = 0;
    1.75  		};
    1.76 @@ -1411,6 +1422,7 @@
    1.77  				56ED04E1118A8EE200A56AA6 /* SDL_power.c in Sources */,
    1.78  				56ED04E3118A8EFD00A56AA6 /* SDL_syspower.m in Sources */,
    1.79  				006E9889119552DD001DE610 /* SDL_rwopsbundlesupport.m in Sources */,
    1.80 +				044E5FB811E606EB0076F181 /* SDL_clipboard.c in Sources */,
    1.81  			);
    1.82  			runOnlyForDeploymentPostprocessing = 0;
    1.83  		};
     2.1 --- a/Xcode/SDL/SDL.xcodeproj/project.pbxproj	Thu Jul 08 05:43:34 2010 -0700
     2.2 +++ b/Xcode/SDL/SDL.xcodeproj/project.pbxproj	Thu Jul 08 06:16:27 2010 -0700
     2.3 @@ -438,6 +438,8 @@
     2.4  		00D8DA281195093100638393 /* SDL_at.c in Sources */ = {isa = PBXBuildFile; fileRef = 00D8DA151195093100638393 /* SDL_at.c */; };
     2.5  		00D8DA291195093100638393 /* surface.c in Sources */ = {isa = PBXBuildFile; fileRef = 00D8DA181195093100638393 /* surface.c */; };
     2.6  		00D8DA2A1195093100638393 /* testsdl.c in Sources */ = {isa = PBXBuildFile; fileRef = 00D8DA1A1195093100638393 /* testsdl.c */; };
     2.7 +		044E5F8511E6051C0076F181 /* SDL_clipboard.h in Headers */ = {isa = PBXBuildFile; fileRef = 044E5F8411E6051C0076F181 /* SDL_clipboard.h */; };
     2.8 +		044E5F8611E6051C0076F181 /* SDL_clipboard.h in Headers */ = {isa = PBXBuildFile; fileRef = 044E5F8411E6051C0076F181 /* SDL_clipboard.h */; };
     2.9  		046B91EC0A11B53500FB151C /* SDL_sysloadso.c in Sources */ = {isa = PBXBuildFile; fileRef = 046B91E90A11B53500FB151C /* SDL_sysloadso.c */; };
    2.10  		046B91ED0A11B53500FB151C /* SDL_sysloadso.c in Sources */ = {isa = PBXBuildFile; fileRef = 046B91E90A11B53500FB151C /* SDL_sysloadso.c */; };
    2.11  		046B92130A11B8AD00FB151C /* SDL_dlcompat.c in Sources */ = {isa = PBXBuildFile; fileRef = 046B92100A11B8AD00FB151C /* SDL_dlcompat.c */; };
    2.12 @@ -446,6 +448,14 @@
    2.13  		04DB838D10FD8C81000519B5 /* SDL_drawrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 04DB838B10FD8C81000519B5 /* SDL_drawrect.c */; };
    2.14  		04DB838E10FD8C81000519B5 /* SDL_blendfillrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 04DB838A10FD8C81000519B5 /* SDL_blendfillrect.c */; };
    2.15  		04DB838F10FD8C81000519B5 /* SDL_drawrect.c in Sources */ = {isa = PBXBuildFile; fileRef = 04DB838B10FD8C81000519B5 /* SDL_drawrect.c */; };
    2.16 +		04DEA57111E6006A00386CAC /* SDL_input.h in Headers */ = {isa = PBXBuildFile; fileRef = 04DEA56F11E6006A00386CAC /* SDL_input.h */; };
    2.17 +		04DEA57311E6006A00386CAC /* SDL_input.h in Headers */ = {isa = PBXBuildFile; fileRef = 04DEA56F11E6006A00386CAC /* SDL_input.h */; };
    2.18 +		04DEA57511E6009000386CAC /* SDL_clipboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 04DEA57411E6009000386CAC /* SDL_clipboard.c */; };
    2.19 +		04DEA57611E6009000386CAC /* SDL_clipboard.c in Sources */ = {isa = PBXBuildFile; fileRef = 04DEA57411E6009000386CAC /* SDL_clipboard.c */; };
    2.20 +		04DEA57911E600A600386CAC /* SDL_cocoaclipboard.h in Headers */ = {isa = PBXBuildFile; fileRef = 04DEA57711E600A600386CAC /* SDL_cocoaclipboard.h */; };
    2.21 +		04DEA57A11E600A600386CAC /* SDL_cocoaclipboard.m in Sources */ = {isa = PBXBuildFile; fileRef = 04DEA57811E600A600386CAC /* SDL_cocoaclipboard.m */; };
    2.22 +		04DEA57B11E600A600386CAC /* SDL_cocoaclipboard.h in Headers */ = {isa = PBXBuildFile; fileRef = 04DEA57711E600A600386CAC /* SDL_cocoaclipboard.h */; };
    2.23 +		04DEA57C11E600A600386CAC /* SDL_cocoaclipboard.m in Sources */ = {isa = PBXBuildFile; fileRef = 04DEA57811E600A600386CAC /* SDL_cocoaclipboard.m */; };
    2.24  		04F2AF661104AC0800D6DDF7 /* SDL_assert.c in Sources */ = {isa = PBXBuildFile; fileRef = 04F2AF651104AC0800D6DDF7 /* SDL_assert.c */; };
    2.25  		04F2AF671104AC0800D6DDF7 /* SDL_assert.c in Sources */ = {isa = PBXBuildFile; fileRef = 04F2AF651104AC0800D6DDF7 /* SDL_assert.c */; };
    2.26  		04F2AF691104AC4500D6DDF7 /* SDL_assert.h in Headers */ = {isa = PBXBuildFile; fileRef = 04F2AF681104AC4500D6DDF7 /* SDL_assert.h */; };
    2.27 @@ -795,10 +805,15 @@
    2.28  		01538439006D7D947F000001 /* SDL_fatal.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = SDL_fatal.c; path = ../../src/SDL_fatal.c; sourceTree = SOURCE_ROOT; };
    2.29  		0153843C006D7D947F000001 /* SDL.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = SDL.c; path = ../../src/SDL.c; sourceTree = SOURCE_ROOT; };
    2.30  		01538445006D7EC67F000001 /* SDL_thread.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = SDL_thread.c; path = ../../src/thread/SDL_thread.c; sourceTree = SOURCE_ROOT; };
    2.31 +		044E5F8411E6051C0076F181 /* SDL_clipboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_clipboard.h; path = ../../include/SDL_clipboard.h; sourceTree = SOURCE_ROOT; };
    2.32  		046B91E90A11B53500FB151C /* SDL_sysloadso.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = SDL_sysloadso.c; sourceTree = "<group>"; };
    2.33  		046B92100A11B8AD00FB151C /* SDL_dlcompat.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = SDL_dlcompat.c; sourceTree = "<group>"; };
    2.34  		04DB838A10FD8C81000519B5 /* SDL_blendfillrect.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_blendfillrect.c; sourceTree = "<group>"; };
    2.35  		04DB838B10FD8C81000519B5 /* SDL_drawrect.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_drawrect.c; sourceTree = "<group>"; };
    2.36 +		04DEA56F11E6006A00386CAC /* SDL_input.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_input.h; path = ../../include/SDL_input.h; sourceTree = SOURCE_ROOT; };
    2.37 +		04DEA57411E6009000386CAC /* SDL_clipboard.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_clipboard.c; sourceTree = "<group>"; };
    2.38 +		04DEA57711E600A600386CAC /* SDL_cocoaclipboard.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_cocoaclipboard.h; sourceTree = "<group>"; };
    2.39 +		04DEA57811E600A600386CAC /* SDL_cocoaclipboard.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDL_cocoaclipboard.m; sourceTree = "<group>"; };
    2.40  		04F2AF651104AC0800D6DDF7 /* SDL_assert.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_assert.c; path = ../../src/SDL_assert.c; sourceTree = SOURCE_ROOT; };
    2.41  		04F2AF681104AC4500D6DDF7 /* SDL_assert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_assert.h; path = ../../include/SDL_assert.h; sourceTree = SOURCE_ROOT; };
    2.42  		083E489D006D88D97F000001 /* SDL_joystick.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = SDL_joystick.c; sourceTree = "<group>"; };
    2.43 @@ -1033,6 +1048,8 @@
    2.44  		00CFA703106B498A00758660 /* cocoa */ = {
    2.45  			isa = PBXGroup;
    2.46  			children = (
    2.47 +				04DEA57711E600A600386CAC /* SDL_cocoaclipboard.h */,
    2.48 +				04DEA57811E600A600386CAC /* SDL_cocoaclipboard.m */,
    2.49  				00CFA704106B498A00758660 /* SDL_cocoaevents.h */,
    2.50  				00CFA705106B498A00758660 /* SDL_cocoaevents.m */,
    2.51  				00CFA706106B498A00758660 /* SDL_cocoakeyboard.h */,
    2.52 @@ -1380,6 +1397,7 @@
    2.53  				00CFA7FA106B49B600758660 /* SDL_blit.c */,
    2.54  				00CFA7FB106B49B600758660 /* SDL_blit.h */,
    2.55  				00CFA7FC106B49B600758660 /* SDL_bmp.c */,
    2.56 +				04DEA57411E6009000386CAC /* SDL_clipboard.c */,
    2.57  				00CFA7FD106B49B600758660 /* SDL_draw.h */,
    2.58  				00CFA7FE106B49B600758660 /* SDL_drawline.c */,
    2.59  				00CFA7FF106B49B600758660 /* SDL_drawpoint.c */,
    2.60 @@ -1420,12 +1438,13 @@
    2.61  		0153844A006D81B07F000001 /* Public Headers */ = {
    2.62  			isa = PBXGroup;
    2.63  			children = (
    2.64 -				04F2AF681104AC4500D6DDF7 /* SDL_assert.h */,
    2.65  				0C5AF5E501191D2B7F000001 /* begin_code.h */,
    2.66  				0C5AF5E601191D2B7F000001 /* close_code.h */,
    2.67  				0C5AF5FF01191D2B7F000001 /* SDL.h */,
    2.68 +				04F2AF681104AC4500D6DDF7 /* SDL_assert.h */,
    2.69  				00CFA67A106B44CE00758660 /* SDL_atomic.h */,
    2.70  				0C5AF5E801191D2B7F000001 /* SDL_audio.h */,
    2.71 +				044E5F8411E6051C0076F181 /* SDL_clipboard.h */,
    2.72  				00CFA67B106B44CE00758660 /* SDL_compat.h */,
    2.73  				00162D3709BD1FA90037C8D0 /* SDL_config.h */,
    2.74  				00162D3409BD1FA90037C8D0 /* SDL_config_macosx.h */,
    2.75 @@ -1435,6 +1454,7 @@
    2.76  				0C5AF5ED01191D2B7F000001 /* SDL_error.h */,
    2.77  				0C5AF5EE01191D2B7F000001 /* SDL_events.h */,
    2.78  				00CFA67C106B44CE00758660 /* SDL_haptic.h */,
    2.79 +				04DEA56F11E6006A00386CAC /* SDL_input.h */,
    2.80  				0C5AF5F001191D2B7F000001 /* SDL_joystick.h */,
    2.81  				0C5AF5F101191D2B7F000001 /* SDL_keyboard.h */,
    2.82  				0C5AF5F201191D2B7F000001 /* SDL_keysym.h */,
    2.83 @@ -1743,6 +1763,9 @@
    2.84  				00A6EBDA1078D569001EEA06 /* SDL_revision.h in Headers */,
    2.85  				04F2AF691104AC4500D6DDF7 /* SDL_assert.h in Headers */,
    2.86  				006E95B011952992001DE610 /* SDL_rwopsbundlesupport.h in Headers */,
    2.87 +				04DEA57111E6006A00386CAC /* SDL_input.h in Headers */,
    2.88 +				04DEA57911E600A600386CAC /* SDL_cocoaclipboard.h in Headers */,
    2.89 +				044E5F8511E6051C0076F181 /* SDL_clipboard.h in Headers */,
    2.90  			);
    2.91  			runOnlyForDeploymentPostprocessing = 0;
    2.92  		};
    2.93 @@ -1843,6 +1866,9 @@
    2.94  				00A6EBDB1078D569001EEA06 /* SDL_revision.h in Headers */,
    2.95  				04F2AF6A1104AC4500D6DDF7 /* SDL_assert.h in Headers */,
    2.96  				006E95B211952992001DE610 /* SDL_rwopsbundlesupport.h in Headers */,
    2.97 +				04DEA57311E6006A00386CAC /* SDL_input.h in Headers */,
    2.98 +				04DEA57B11E600A600386CAC /* SDL_cocoaclipboard.h in Headers */,
    2.99 +				044E5F8611E6051C0076F181 /* SDL_clipboard.h in Headers */,
   2.100  			);
   2.101  			runOnlyForDeploymentPostprocessing = 0;
   2.102  		};
   2.103 @@ -2035,7 +2061,7 @@
   2.104  			);
   2.105  			runOnlyForDeploymentPostprocessing = 0;
   2.106  			shellPath = /bin/sh;
   2.107 -			shellScript = "# The underlying scripts require calling hg to get revision info.\n# Since hg may not be in the standard Xcode path, I am sourcing .bashrc\n# But I don't know what to do if people are using other shells.\nsource ~/.bashrc\nsh ../../build-scripts/updaterev.sh\n";
   2.108 +			shellScript = "# The underlying scripts require calling hg to get revision info.\n# Since hg may not be in the standard Xcode path, I am sourcing .bashrc\n# But I don't know what to do if people are using other shells.\nif test -f ~/.bash_profile; then source ~/.bash_profile; fi\nif test -f ~/.bashrc; then source ~/.bashrc; fi\nsh ../../build-scripts/updaterev.sh\n";
   2.109  		};
   2.110  		0083103E1072EA5700A531F1 /* ShellScript */ = {
   2.111  			isa = PBXShellScriptBuildPhase;
   2.112 @@ -2202,6 +2228,8 @@
   2.113  				04DB838D10FD8C81000519B5 /* SDL_drawrect.c in Sources */,
   2.114  				04F2AF661104AC0800D6DDF7 /* SDL_assert.c in Sources */,
   2.115  				006E95B111952992001DE610 /* SDL_rwopsbundlesupport.m in Sources */,
   2.116 +				04DEA57511E6009000386CAC /* SDL_clipboard.c in Sources */,
   2.117 +				04DEA57A11E600A600386CAC /* SDL_cocoaclipboard.m in Sources */,
   2.118  			);
   2.119  			runOnlyForDeploymentPostprocessing = 0;
   2.120  		};
   2.121 @@ -2318,6 +2346,8 @@
   2.122  				04DB838F10FD8C81000519B5 /* SDL_drawrect.c in Sources */,
   2.123  				04F2AF671104AC0800D6DDF7 /* SDL_assert.c in Sources */,
   2.124  				006E95B311952992001DE610 /* SDL_rwopsbundlesupport.m in Sources */,
   2.125 +				04DEA57611E6009000386CAC /* SDL_clipboard.c in Sources */,
   2.126 +				04DEA57C11E600A600386CAC /* SDL_cocoaclipboard.m in Sources */,
   2.127  			);
   2.128  			runOnlyForDeploymentPostprocessing = 0;
   2.129  		};
     3.1 --- a/src/video/cocoa/SDL_cocoaclipboard.m	Thu Jul 08 05:43:34 2010 -0700
     3.2 +++ b/src/video/cocoa/SDL_cocoaclipboard.m	Thu Jul 08 06:16:27 2010 -0700
     3.3 @@ -23,20 +23,28 @@
     3.4  
     3.5  #include "SDL_cocoavideo.h"
     3.6  
     3.7 +static NSString *
     3.8 +GetTextFormat(_THIS)
     3.9 +{
    3.10 +#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
    3.11 +    return NSStringPboardType;
    3.12 +#else
    3.13 +    SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
    3.14 +
    3.15 +    if (data->osversion >= 0x1060) {
    3.16 +        return NSPasteboardTypeString;
    3.17 +    } else {
    3.18 +        return NSStringPboardType;
    3.19 +    }
    3.20 +#endif
    3.21 +}
    3.22  
    3.23  int
    3.24  Cocoa_SetClipboardText(_THIS, const char *text)
    3.25  {
    3.26 -    SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
    3.27      NSAutoreleasePool *pool;
    3.28  	NSPasteboard *pasteboard;
    3.29 -    NSString *format;
    3.30 -
    3.31 -    if (data->osversion >= 0x1060) {
    3.32 -        format = NSPasteboardTypeString;
    3.33 -    } else {
    3.34 -        format = NSStringPboardType;
    3.35 -    }
    3.36 +    NSString *format = GetTextFormat(_this);
    3.37  
    3.38      pool = [[NSAutoreleasePool alloc] init];
    3.39  
    3.40 @@ -52,19 +60,12 @@
    3.41  char *
    3.42  Cocoa_GetClipboardText(_THIS)
    3.43  {
    3.44 -    SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
    3.45      NSAutoreleasePool *pool;
    3.46  	NSPasteboard *pasteboard;
    3.47 -    NSString *format;
    3.48 +    NSString *format = GetTextFormat(_this);
    3.49      NSString *available;
    3.50      char *text;
    3.51  
    3.52 -    if (data->osversion >= 0x1060) {
    3.53 -        format = NSPasteboardTypeString;
    3.54 -    } else {
    3.55 -        format = NSStringPboardType;
    3.56 -    }
    3.57 -
    3.58      pool = [[NSAutoreleasePool alloc] init];
    3.59  
    3.60      pasteboard = [NSPasteboard generalPasteboard];
    3.61 @@ -92,19 +93,12 @@
    3.62  SDL_bool
    3.63  Cocoa_HasClipboardText(_THIS)
    3.64  {
    3.65 -    SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
    3.66      NSAutoreleasePool *pool;
    3.67  	NSPasteboard *pasteboard;
    3.68 -    NSString *format;
    3.69 +    NSString *format = GetTextFormat(_this);
    3.70      NSString *available;
    3.71      SDL_bool result;
    3.72  
    3.73 -    if (data->osversion >= 0x1060) {
    3.74 -        format = NSPasteboardTypeString;
    3.75 -    } else {
    3.76 -        format = NSStringPboardType;
    3.77 -    }
    3.78 -
    3.79      pool = [[NSAutoreleasePool alloc] init];
    3.80  
    3.81      pasteboard = [NSPasteboard generalPasteboard];