Skip to content

Commit

Permalink
Merge pull request #16 from johankool/master
Browse files Browse the repository at this point in the history
Point to generator
  • Loading branch information
thijsdamen committed May 22, 2014
2 parents 69f0adc + 606fec7 commit db6dea5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ Documentation
Documentation is available [here](http://egeniq.github.io/EFDataMappingKit/).


Code Generator
==============

Still in early development, but a nice little code generator is available [here](http://egeniq.github.io/EFDataMappingKit/generator/). It takes your JSON and creates basic mappings for you.


Using EFDataMappingKit
======================

Expand Down Expand Up @@ -170,7 +176,7 @@ Use `formatter`, `transformer` and `transformBlock` if you need make some change
Step 3. Register mappings
-------------------------

You register an array of EFMapping objects for each entity class.
You register an array of `EFMapping` objects for each entity class.

```objective-c
EFMapper *mapper = [EFMapper sharedInstance];
Expand All @@ -181,7 +187,9 @@ EFMapper *mapper = [EFMapper sharedInstance];
Step 4. Apply values
--------------------
You apply your values either to an already existing instance. Before applying the values, the mapper will validate the values and let you know about any issues.
You apply your values either to an already existing instance or you can ask for a new object to be initialized. Before applying the values, the mapper will validate the values and let you know about any issues.
To apply to an existing object:
```objective-c
EFMapper *mapper = [EFMapper sharedInstance];
Expand All @@ -194,7 +202,7 @@ if (![mapper setValues:incomingValues onObject:existingObject error:&error]) {
}
```

Or you can ask for a new object to be initialized:
To create a new object:

```objective-c
EFMapper *mapper = [EFMapper sharedInstance];
Expand Down

0 comments on commit db6dea5

Please sign in to comment.