开发者

What are these methods and how do I automatically generate them from Core Data?

开发者 https://www.devze.com 2023-04-11 07:59 出处:网络
What are these methods and how do I automatically generate them from Core Data ? @interface MyClass (CoreDataGeneratedAccessors)

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消