Commits

Tuukka Norri  committed 86b1597

Fixes in MKCCollections and boolean support
- Changed a method name (dictionaryRepresentation) to match with Foundation.
- Implemented the method in our compatibility classes.
- Also implemented -makeObjectsPerformSelector:withObject: since it was required.
- Also implemented -objectsForKeys:notFoundMarker for the same reason.
- Changed -[NSNumber PGTSConstantExpressionValue:] so that for boolean NSNumbers, @"true" or @"false" is returned instead of just 1 or 0. Postgres doesn't do typecasting in this case automatically. It might have done it earlier.

  • Participants
  • Parent commits e0a3253
  • Branches PGTS

Comments (0)

Files changed (2)

File 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 */;

File Framework/Sources/PGTSAdditions.m

 
 - (id) PGTSConstantExpressionValue: (NSDictionary *) context
 {
-    return self;
+	id retval = self;
+	if (0 == strcmp ("c", [self objCType]))
+		retval = ([self boolValue] ? @"true" : @"false");
+    return retval;
 }
 @end