开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜