我有一个coredata模型类(NSManagedObject的子类),它有很多属性。当我将值从DTO类复制到具有几乎相同属性的coredata模型类时,我更喜欢使用像BeanUtils.copyProperties这样的复制工具。有没有人知道CocoaAPI中是否有这样一个有用的类。
"BeanUtils.copyProperties"
Copy the property values of the given source bean into the target bean.
http://docs.spring.io/spring/docs/2.5.6/api/org/springframework/beans/BeanUtils.html#copyProperties(java.lang.Object, java.lang.Object)