Core Data Xcode 4 question
Core Data Xcode 4 question
- Subject: Core Data Xcode 4 question
- From: Andrew Kinnie <email@hidden>
- Date: Thu, 01 Sep 2011 16:19:07 -0400
Greetings,
I have a Core Data implementation, using generated subclasses of NSManagedObject for some of my entities.
I used Xcode 4 to generate the initial subclass, then added other business rules methods as needed. I noticed, however, that the to-many relationship methods are stubbed in to the .h file, but there is no implementation in the .m file and it reports incomplete implementation. However, the methods appear to actually work.
So I am confused. Am I supposed to implement these or not? If not, what can I do to get rid of the warning?
Is there an explanation as to why the Generate Managed Object Subclass menu item would create them in the .h but not implement them in the .m? I ask because I am concerned that I am missing something about Core Data.
Thanks in advance.
Andrew
PS: The method are the to-many relationship methods of the form:
- (void)addMediaObject:(MediaResource *)value;
- (void)removeMediaObject:(MediaResource *)value;
- (void)addMedia:(NSSet *)value;
- (void)removeMedia:(NSSet *)value;
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden