• 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: Using a Core Data model by itself
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Using a Core Data model by itself (From: Daryle Walker <email@hidden>)
 >Re: Using a Core Data model by itself (From: Jens Alfke <email@hidden>)

  • Prev by Date: Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior
  • Next by Date: Re: Custom-vs-modal presentation?
  • Previous by thread: Re: Using a Core Data model by itself
  • Next by thread: Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior
  • Index(es):
    • Date
    • Thread