aryaxt / OCMapper

Objective-C library to easily map NSDictionary to model objects, works perfectly with Alamofire. ObjectMapper works similar to GSON
MIT License
347 stars 45 forks source link

ObjectMapper. Use sharedInstance vs create new instance. #26

Closed W2N-git closed 9 years ago

W2N-git commented 9 years ago

Should I always use "sharedInstance" instead of creating new instance of ObjectMapper?

aryaxt commented 9 years ago

shared instance is used in NSObject and NSDictionary categories, so if you don't want to use it you don't have to, but then you won't be able to use the helper categories. use sharedInstance

https://github.com/aryaxt/OCMapper/tree/master/OCMapper/Source/Categories