Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PONSO - Type-safe, in-memory Plain Old NSObjects with relationships #60

Merged
merged 35 commits into from
Jun 4, 2011

Conversation

nzhuk
Copy link
Collaborator

@nzhuk nzhuk commented Jun 4, 2011

Hi Rentzsch,

I've been playing with generation of non-CoreData data model I call PONSO (Plain Old NSObjects), which basically allows you to generate ObjC data models from Xcode data models. The main difference between existing "plain ObjC objects" templates is that it supports relationships and basic serialization/deserialization. And there's more, see README.txt file.

This is pretty huge set of changes so take your time to see if you're interested in pulling this. Shouldn't break the basic mogenerator and existing templates, though :)

Executive summary of this pull request:

  • Various small fixes in mogenerator source code, including 64-bit safety and deprecation warnings
  • Alphabetic ordering of attributes, relationships and fetch requests for stable code generation
  • Addition of PONSO code generation templates, PONSO support code and a sample project. See "contributed templates/Nikita Zhuk/ponso/README.txt" file for more info.

- Updated Xcode project format to "3.2 compatible"
- Set Debug architecture to "Native Architecture of Build Machine"
- Set Release architecture to "Standard 32/64-bit Intel"
- Set compiler to LLVM/Clang
- Removed extra 'GNU_RUNTIME' token
… and end delimiters.

- This change also fixes compiler warnings.
MOMC_NO_WARNINGS, MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS, MOMC_SUPPRESS_INVERSE_TRANSIENT_ERROR

These options can be set as ENV variables and they will be passed to the momc compiler.
- Fixed one 64-bit safety issue
- This guarantees stable ordering on subsequent mogenerator runs.
@rentzsch
Copy link
Owner

rentzsch commented Jun 4, 2011

Wow, lots of great work here. Thanks for digging into the old MiscMerge code and modernizing it. Also love the attribute sorting -- I've been wanting to do that myself. PONSO looks fantastic. My only gripe is that I don't think the mogenerator binary should be in version control. Tell you what, I'll accept the entire pull request and delete the binary (unless you can convince me I should leave it in?).

rentzsch added a commit that referenced this pull request Jun 4, 2011
PONSO - Type-safe, in-memory Plain Old NSObjects with relationships
@rentzsch rentzsch merged commit b759975 into rentzsch:master Jun 4, 2011
@nzhuk
Copy link
Collaborator Author

nzhuk commented Jun 4, 2011

Oh, sure. That was my fault, was easier during sample project dev but should've removed that before pushing ;)

ddrccw pushed a commit to ddrccw/mogenerator that referenced this pull request Jan 20, 2014
PONSO - Type-safe, in-memory Plain Old NSObjects with relationships
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants