Mogenerator just got that much better for me

This was always an issue that had been bothering me and not knowing mogenerator was capable of this, now I’m delighted to find out that in the CoreData editor, you can tell mogenerator what data type to generate when declaring transformable data types.

See here.

AND, just in case it helps, so long as you are trying to persist a non-standard data type, as long as you support the NSCoding protocol, transformable attributes without any special NSValueTransformer class.

I really have come to like working with CoreData (along with MagicalRecord and mogenerator).  I can’t imagine a project without it now.

UPDATE:

And, as of recently, you can also use mogenerator to specify whether it should use a particular scalar type, which now eliminates having to store .genderEnum and then wrap your enum .gender with custom accessors.

Also useful:
Brief Introduction
mogenerator on github

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s