Questions tagged [mogenerator]

Utility to easily create and maintain custom NSManagedObject subclasses for Core Data entities.

mogenerator is a (command line) tool that generates NSManagedObject subclasses for Core Data entities.

It manages two classes for each entity in the data model: one for machines and one for users. While machine classes can always be overwritten to match the model, user classes are preserved with their changes.

Relevant links
Project homepage
GitHub Source Code repository

73 questions
68
votes
4 answers

How do the Mogenerator parameters work, which can I send via Xcode?

The help for Mogenerator is very minimal. What do all the parameters do?
Senseful
  • 86,719
  • 67
  • 308
  • 465
34
votes
1 answer

How do I get mogenerator to recognize the proper type for Transformable attributes?

I have a Core Data model with a single transformable attribute. I also have this attribute use a custom NSValueTransformer, setup in the model properly. When I use mogenerator to generate/update my machine and human files, the machine files for the…
casademora
  • 67,775
  • 17
  • 69
  • 78
24
votes
1 answer

Mogenerator error: skipping entity MyObjectName (NSManagedObject) because it doesn't use a custom subclass.

Why am I seeing the following error when running mogenerator to generator class files for my Core Data model objects? skipping entity MyObjectName (NSManagedObject) because it doesn't use a custom subclass.
codeperson
  • 8,050
  • 5
  • 32
  • 51
19
votes
6 answers

How do I use Mogenerator?

I installed Mogenerator. Now what do I do? How do I use it? The first problem I have is that I have no idea where it was installed to. During the install process, it only let me select the hard drive to install it on, not the directory. The most…
Senseful
  • 86,719
  • 67
  • 308
  • 465
19
votes
1 answer

Mogenerator not found by Xcode

I'm trying to use Mogenerator in my iOS project developed in Xcode 5. I've installed Mogenerator with brew: brew install mogenerator then link: brew link mogenerator After that I have access to this tool from my command line. Next I'm trying to…
Gie
  • 1,907
  • 2
  • 24
  • 49
18
votes
2 answers

What are the 'primitive' accessors for in Core Data?

From the Core Data Programming Guide (my emphasis): By default, Core Data dynamically creates efficient public and primitive get and set accessor methods for modeled properties (attributes and relationships) of managed object classes. Although…
epologee
  • 11,229
  • 11
  • 68
  • 104
17
votes
1 answer

What features does mogenerator provide?

I've been using mogenerator for a while now, and while there is a reasonable Getting Started Guide and a Stack Exchange article on the command line options, I haven't found a good guide for all of the functionality it provides. In short: what,…
David Ogren
  • 4,396
  • 1
  • 19
  • 29
8
votes
5 answers

Mogenerator and Xcode 4

I just installed mogenerator+xmo'd on my development machine and would like to start playing with it. The only instructions I could really find online were from a previous SO post, and those don't work with XCode 4 (or at least ⌘I doesn't pull up…
Bill Shiff
  • 1,429
  • 2
  • 14
  • 17
7
votes
2 answers

Steps to Make Mogenerator Work in Xcode 5

I am following the steps in this link: http://raptureinvenice.com/getting-started-with-mogenerator/ I have done this before in Xcode 4.6 but now that I have updated to Xcode 5 I couldn't follow it anymore. I selected my target but I couldn't find…
Lie-An
  • 2,563
  • 3
  • 17
  • 20
6
votes
2 answers

The entity (null) is not key value coding-compliant for the key "title"

I'm trying to get RestKit and CoreData to work together. I'm getting closer, but I'm getting the following error: CoreData: error: Failed to call designated initializer on NSManagedObject class 'Book' *** Terminating app due to uncaught exception…
Sean Clark Hess
  • 15,859
  • 12
  • 52
  • 100
6
votes
1 answer

mogenerator doesn't generate any entities even though datamodel contains entities. Reports "No entities found in model. No files will be generated."

I'm trying to get mogenerator (1.26 latest) to generate some boiler plate classes from a core data model (xcdatamodel) and it reports: No entities found in model. No files will be generated. (model description: ()…
BlueFish
  • 5,045
  • 3
  • 26
  • 35
5
votes
2 answers

How do I use MOgenerator's xmod?

I just installed MOgenerator 1.21 for use with Xcode 3.2.5 (on an iOS project if that's relevant). I can run the mogenerator command from the terminal fine. But I can't seem to have xmod work. mdfind reports xmod is…
Jean-Denis Muys
  • 6,772
  • 7
  • 45
  • 71
5
votes
2 answers

Integrate mogenerator within Xcode 4

In my application I'm using Core Data stuff to enable persistent data saving. Since I've seen that mogenerator provides a good approach to create and maintain NSManagedObject subclasses (also with additional functionalities), I'm looking for some…
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
4
votes
1 answer

Plain Core Data vs Core Data + Magical Record

I'm planning a way to persist data for an iOS (swift) app. From reading a bunch of articles about persistance on iOS, it seems Core Data is a really well supported way to do that. A bunch of libraries/tools are built around it, one popular…
Philip
  • 3,470
  • 7
  • 29
  • 42
4
votes
1 answer

Extending Core Data generated NSManagedObject classes

I've been dealing with Core Data for the first time and I wanted to know what the best practices are for extending the classes that Xcode generates for my NSManagedObject entities. I saw mogenerator and I've been also using a similar approach to…
1
2 3 4 5