Re: Opinion: Core Data or roll my own?
Re: Opinion: Core Data or roll my own?
- Subject: Re: Opinion: Core Data or roll my own?
- From: Sean McBride <email@hidden>
- Date: Tue, 08 Apr 2014 19:02:44 -0400
- Organization: Rogue Research Inc.
On Tue, 8 Apr 2014 15:47:21 -0700, Rick Mann said:
>Oh, maybe you're right; that would work if I just coded up my class's
>property as "id", wouldn't it? Don't know why I thought that wouldn't work.
For example, we have a class that represents a 4x4 matrix. It conforms to NSCoding to serialize itself. In the xcdatamodel, when we want to use one of these objects, we set the attribute type to 'transformable'. As we also use mogenerator (which I strongly recommend), we set in the user info dictionary a key of 'attributeValueClassName' with value 'MyClassName', then mogenerator will make accessors with the right types too.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden