Tuukka Norri avatar Tuukka Norri committed c2d23ba

GC and collection related fixes.
- Added -makeObjectsPerformSelector:withObject: and -objectsForKeys: to NSMapTable (actually NSObject) class since we need those. NSMapTable class cannot be referenced when linking against the 10.4 SDK.
- Wrote a finalizer in BXDatabaseContext.
- -[BXDatabaseContext disconnect] now works even after the connection has been made. It should end the additional thread created for the PG connection.
- Enabled GC in various libraries. We'll see what that does in 10.4.

Comments (0)

Files changed (3)

Framework/Contrib/Log4Cocoa/Log4Cocoa.xcodeproj/project.pbxproj

 				COPY_PHASE_STRIP = NO;
 				GCC_DYNAMIC_NO_PIC = NO;
 				GCC_ENABLE_FIX_AND_CONTINUE = YES;
+				GCC_ENABLE_OBJC_GC = YES;
 				GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
 				GCC_MODEL_TUNING = G4;
 				GCC_OPTIMIZATION_LEVEL = 0;
 				);
 				COPY_PHASE_STRIP = YES;
 				GCC_ENABLE_FIX_AND_CONTINUE = NO;
+				GCC_ENABLE_OBJC_GC = YES;
 				GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
 				GCC_MODEL_TUNING = G4;
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;

Framework/Framework.xcodeproj/project.pbxproj

 		0867D690FE84028FC02AAC07 /* Project object */ = {
 			isa = PBXProject;
 			buildConfigurationList = 53BA4FD208804E6B00BFAFB5 /* Build configuration list for PBXProject "Framework" */;
+			compatibilityVersion = "Xcode 2.4";
 			hasScannedForEncodings = 1;
 			mainGroup = 0867D691FE84028FC02AAC07 /* Framework */;
 			productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 536580C80A36FDBA00CDEC90 /* static-debug.xcconfig */;
 			buildSettings = {
+				GCC_ENABLE_OBJC_GC = YES;
 			};
 			name = Debug;
 		};
 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 536580C90A36FDBA00CDEC90 /* static-release.xcconfig */;
 			buildSettings = {
+				GCC_ENABLE_OBJC_GC = YES;
 			};
 			name = Release;
 		};

TigerFramework/PGTSTiger.xcodeproj/project.pbxproj

 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 5360BE370A370368007B3BDC /* static-debug.xcconfig */;
 			buildSettings = {
+				GCC_ENABLE_OBJC_GC = YES;
 			};
 			name = Debug;
 		};
 			isa = XCBuildConfiguration;
 			baseConfigurationReference = 5360BE380A370368007B3BDC /* static-release.xcconfig */;
 			buildSettings = {
+				GCC_ENABLE_OBJC_GC = YES;
 			};
 			name = Release;
 		};
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.