If yes, is there any example code for this?
Background - I'm finding that where I pass a config object I retrieve from core data (for my iPhone app) and I pass this around to various methods, that when I go to test these methods it is there difficult because I have to create a core data object. If I create it directly (without using core data infrastructure) it doesn't work as the properties are dynamic. An example of an autogenerated coredata managed object is:
- Code: Select all
@interface WEView : NSManagedObject {
@private
}
@property (nonatomic, retain) NSString * title;
@end
#import "WEView.h"
@implementation WEView
@dynamic title;
@end