Provide generated/custom code pair from Core Data Model editor
| Originator: | armand.jesse | ||
| Number: | rdar://11207494 | Date Originated: | 08-Apr-2012 11:53 PM |
| Status: | Open | Resolved: | No |
| Product: | Developer Tools | Product Version: | |
| Classification: | Feature (New) | Reproducible: | Not Applicable |
This specific need has occurred since Xcode 3. To explain it in a better way, it would be great if Xcode could provide the features similar to Mogenerator (http://rentzsch.github.com/mogenerator/) What is needed from the current core data system was explained in this article: http://raptureinvenice.com/getting-started-with-mogenerator/ Some features such as methods to manipulate the relationships of an object is already available. But, other things described on the article is not available yet: - A separate generated and custom code pair to provide a way to manipulate the custom entity classes without manually preventing it from being overwritten if we modify the data model. - Wrapper for NSNumber properties. - Validations tool. Also it would be nice if we could "regenerate" the data model code without going through the "New File" wizard (although this feature is needed for initial file creation). Once these files are created, we could just edit the xcdatamodel files, and the updated data model classes will be regenerated upon building if there's a change. We could still of course choose to create new NSManagedObject subclass. Then, instead of showing "Core Data Model Editor Help" on the context menu of the entity. Provide an option to create the NSManagedObject subclass (or any additional useful features related to the entity) from the menu.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!