• 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: CoreData entity mutability
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData entity mutability


  • Subject: Re: CoreData entity mutability
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 19 Jan 2009 21:42:45 -0500

On Mon, Jan 19, 2009 at 8:39 AM, Antoine Maillard
<email@hidden> wrote:
> How can I convert a NSManagedObject of type A into type B ?

How often do you do this in regular code?  Is it common for a method
to change the identity of the receiver before returning?  Hopefully
the answer is no (KVO trickery aside ;) ).

Just remove the object and replace it with an managed object of entity B.

--Kyle Sluder
_______________________________________________

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: 
 >CoreData entity mutability (From: Antoine Maillard <email@hidden>)

  • Prev by Date: Re: Binding of invisible controls: is lazy data loading possible?
  • Next by Date: Re: Using the security framework
  • Previous by thread: CoreData entity mutability
  • Next by thread: Re: CoreData entity mutability
  • Index(es):
    • Date
    • Thread