Commits

Tuukka Norri  committed 2ce1dac

Fixed documentation and renamed an internal method
- -PGTSCollectD and -PGTSCollectDK had their descriptions backwards. Fixed this.
- Renamed -PGTSKeyCollectDK to -PGTSKeyCollectD for consistency.

  • Participants
  • Parent commits b06ab53

Comments (0)

Files changed (3)

File Sources/BXPGInterface.m

 		retval = [res resultAsArray];
 	else
 	{
-        //FIXME: reason for error?
+        //FIXME: reason for error!
 		*error = [NSError errorWithDomain: kBXErrorDomain
 									 code: kBXErrorUnsuccessfulQuery
 								 userInfo: nil];
 		[mTransactionHandler checkSuperEntities: entity];
 		NSArray* objectIDs = ObjectIDs (entity, res);
 
-		NSDictionary* values = (id) [[valueDict PGTSKeyCollectDK] name];
+		NSDictionary* values = (id) [[valueDict PGTSKeyCollectD] name];
 		if (objectID)
 		{
 			BXDatabaseObject* object = [mContext registeredObjectWithID: objectID];

File Sources/PGTSHOM.h

  * \internal
  * \brief Make a dictionary of collected objects.
  *
- * Make existing objects keys and collected objects values.
+ * Make existing objects values and collected objects keys.
  * \return An invocation recorder that creates an NSDictionary.
  */
 - (id) PGTSCollectD;
  * \internal
  * \brief Make a dictionary of collected objects.
  *
- * Make existing objects values and collected objects keys.
+ * Make existing objects keys and collected objects values.
  * \return An invocation recorder that creates an NSDictionary.
  */
 - (id) PGTSCollectDK;
  * Make existing objects values and collected objects keys.
  * \return An invocation recorder that creates an NSDictionary.
  */
-- (id) PGTSKeyCollectDK;
+- (id) PGTSKeyCollectD;
 
 - (id) PGTSValueSelectFunction: (int (*)(id)) fptr;
 - (id) PGTSValueSelectFunction: (int (*)(id, void*)) fptr argument: (void *) arg;

File Sources/PGTSHOM.m

 	return HOMTrampoline (self, @selector (PGTSCollectDK:userInfo:), nil);
 }
 
-- (id) PGTSKeyCollectDK
+- (id) PGTSKeyCollectD
 {
-	return KeyTrampoline (self, @selector (PGTSKeyCollectDK:userInfo:), nil);
+	return KeyTrampoline (self, @selector (PGTSKeyCollectD:userInfo:), nil);
 }
 
 - (id) PGTSDo
 	CollectAndPerformDK (self, retval, invocation, [self objectEnumerator]);
 }
 
-- (void) PGTSKeyCollectDK: (NSInvocation *) invocation userInfo: (id) ignored
+- (void) PGTSKeyCollectD: (NSInvocation *) invocation userInfo: (id) ignored
 {
 	id retval = [[[NSMutableDictionary alloc] initWithCapacity: [self count]] autorelease];
 	BXEnumerate (currentKey, e, [self keyEnumerator])