What are these methods and how do I automatically generate them from Core Data?
What are these methods and how do I automatically generate them from Core Data ?
@interface MyClass (CoreDataGeneratedAccessors)
- (void)addLoanHistoryObject:(CBLoan *)value;
- (void)removeLoanHistoryObject:(CBLoan *)value;
- (void)addLoanHistory:(开发者_如何学运维NSSet *)value;
- (void)removeLoanHistory:(NSSet *)value;
I'm on xCode3 thanks
These are "magically" generated for you by XCode. You do that by choosing Add New File ... > NSManagedObject Subclass. Then you specify which Entity from your Model you want a class for, and XCode will generate the files for you, with those methods included. Depending on if you have made the right setup for you relations in Core Data.
精彩评论