OCMapper icon indicating copy to clipboard operation
OCMapper copied to clipboard

Objective-C library to easily map NSDictionary to model objects, works perfectly with Alamofire. ObjectMapper works similar to GSON

Results 22 OCMapper issues
Sort by recently updated
recently updated
newest added

Because the current bundle is not the main bundle, but it's the unit test bundle. Try using runtime api instead ``` - (id)processDictionaryFromObject:(NSObject *)object { if ([NSBundle mainBundle] != [NSBundle...

bug

``` - (NSString *)propertyNameForObject:(NSObject *)object byCaseInsensitivePropertyName:(NSString *)caseInsensitivePropertyName { NSString *result = nil; Class currentClass = [object class]; NSString *key = [NSString stringWithFormat:@"%@.%@", NSStringFromClass(currentClass), caseInsensitivePropertyName]; if (self.propertyNameDictionary[key]) return self.propertyNameDictionary[key]; while (currentClass...

bug

Right now we're using mapFromDictionaryKey() to map a variable to the class type which works fairly well. But, as I remember in Android GSON will automatically detect the type and...

Hey, I have corrected logic for > we shouldn't try to map the string objects inside the array It was giving exception on test cases under test targets on swift,...

Hi, I've been using OCMapper for several weeks now and I'm a big fan! While there's a few things I'd love to see improved - in general it was the...

Hello! Maybe its bug, i wanna report it. So, we have Class: ``` @interface TFResponse : NSObject @property(nonatomic, assign) BOOL status; @property(nonatomic, weak) NSDictionary *data; @end ``` And DICT: ```...

enhancement

Right now dictionary from object creation performs a non-optional underscore => camel case conversion, in order to make the library consistent with itself, provide the inverse mapping.

My understanding from the documentation of OCMapper is that if nothing is set, it should automatically map and reverse map an NSDate. But unfortunately, it doesn't. When it is mapping...

enhancement

For some weird reason, converting an object to a dictionary crashed with the following error: valueForUndefinedKey:]: this class is not key value coding-compliant for the key stringByRemovingPercentEncoding if there was...

I use an instance of ObjectMapper and then configure it by adding an InCodeMappingProvider as the mappingProvider. For example : ``` self.mapper_ = [[ObjectMapper alloc] init]; InCodeMappingProvider *inCodeProvider = [[InCodeMappingProvider...