Re: Using a Core Data model by itself
Re: Using a Core Data model by itself
- Subject: Re: Using a Core Data model by itself
- From: Jerry Krinock <email@hidden>
- Date: Thu, 28 Apr 2016 16:25:40 -0700
> On 2016 Apr 28, at 13:23, Jens Alfke <email@hidden> wrote:
>
> So you can start out declaring the model classes like
> @interface Message : NSObject <NSCoding>
Just to clarify, the reason why you must do this and not inherit from NSManagedObject is because the designated initializer of NSManagedObject is -initWithEntity:insertIntoManagedObjectContext:. Using +alloc-init will raise an exception or something.
Although your intended “migration” plan is possible as Jens says, keep in mind while considering this that you will make some decisions in the initial design that you will later regret, particularly if your reason for not using Core Data to begin with is that you are not familiar enough with Core Data.
_______________________________________________
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