Fix issue that caused appledoc to fall over while building documentation.

There's currently a known issue for appledoc (https://github.com/tomaz/appledoc/issues/147) that causes it to fall over when it encounters a method declaration in an implementation that is missing a type (even if its in the header file).  While this is valid Objective-C, lets update this to allow appledoc to go on its merry little way.

* Fix 1 declaration relating to atKeyPath: in RKObjectMapper.m
* Fix 2 declarations relating to atKeyPath: in RKObjectMapper_Private.h
* Fix 1 declaration relating to atKeyPath: in RKObjectMappingOperation.m

All declarations were changed to declare keyPath as an (NSString *).
This commit is contained in:
Brian Morton
2012-01-28 13:33:32 -08:00
parent 104624e1fa
commit f92fbb9f8e
3 changed files with 4 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ BOOL RKObjectIsValueEqualToValue(id sourceValue, id destinationValue) {
return date;
}
- (id)transformValue:(id)value atKeyPath:keyPath toType:(Class)destinationType {
- (id)transformValue:(id)value atKeyPath:(NSString *)keyPath toType:(Class)destinationType {
RKLogTrace(@"Found transformable value at keyPath '%@'. Transforming from type '%@' to '%@'", keyPath, NSStringFromClass([value class]), NSStringFromClass(destinationType));
Class sourceType = [value class];