• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Opinion: Core Data or roll my own?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Opinion: Core Data or roll my own? (From: Mike Manzano <email@hidden>)
 >Re: Opinion: Core Data or roll my own? (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: Opinion: Core Data or roll my own?
  • Next by Date: Re: Excessive open gui graphics files on Mavericks
  • Previous by thread: Re: Opinion: Core Data or roll my own?
  • Next by thread: Re: Opinion: Core Data or roll my own?
  • Index(es):
    • Date
    • Thread