On 8 Feb 2013, at 09:06, Ben <southwestmons...@googlemail.com> wrote:

> I'm confused by the following code. What I'm trying to do is store a 
> reference in a DogManagedObject transformable property, to a 
> CatManagedObject, then retrieve the Cat from the Dog at a later date.
> However, when I log the output I get a class of 'Dog' rather than 'Cat'.

Make sure you're aware of the consequences of this. Managed objects only have a 
*temporary* ID until they are first saved. Only once assigned a permanent ID 
can you reasonably rely on looking up the object in future.

That said, why not use a relationship here?


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to