Toggle navigation
Find or Create a Group
Help
Log In
Sign Up
Help
Log In
Sign Up
Home
Messages
Hashtags
×
×
×
Close
Likes
cocoa@apple-dev.groups.io
Messages
Refactoring existing Core Data entity classes?
×
Close
Search
Single
Toggle Dropdown
Messages
Topics
Expanded
Polls
previous page
#755
next page
Refactoring existing Core Data entity classes?
Steve Christensen
#755
I have inherited some code where Core Data entity classes look something like this:
@interface Entity1 : NSManagedObject
Something* common1;
Something* common2;
Something* common3;
SomethingElse* entity1Specific;
...
@end
@interface Entity2 : NSManagedObject
Something* common1;
Something* common2;
Something* common3;
SomethingElse* entity2Specific;
...
@end
I’d like to refactor the classes into:
@interface Common : NSManagedObject
Something* common1;
Something* common2;
Something* common3;
@end
@interface Entity1 : Common
SomethingElse* entity1Specific;
...
@end
@interface Entity2 : Common
SomethingElse* entity2Specific;
...
@end
Is this possible using just a new model version and/or mapping model, or does it require something more involved?
Thanks,
Steve
More
All Messages By This Member
previous page
View All 6 Messages In Topic
next page
previous page
#755
next page
Join
cocoa@apple-dev.groups.io to automatically receive all group messages.
×
Close
Report Message
Reason
Report to Moderators
I think this message isn't appropriate for our group. The Group moderators are responsible for maintaining their community and can address these issues.
Report to Groups.io Support
I think this violates the Terms of Service. This includes: harm to minors, violence or threats, harassment or privacy invasion, impersonation or misrepresentation, fraud or phishing.
Note:
Your email address is included with the abuse report.
×
Close
Verify Delete
Are you sure you wish to delete this message from the message archives of cocoa@apple-dev.groups.io?
This cannot be undone.
×
Close
Verify Repost
Are you sure you wish to repost this message?
More
Home
Hashtags
About
Features
Pricing
Updates
Terms
Help
Twitter
Toggle navigation
About
Features
Pricing
Updates
Terms
Help
©
2022
Groups.io