• 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
Coercion exception assigning a Core Data property
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Coercion exception assigning a Core Data property


  • Subject: Coercion exception assigning a Core Data property
  • From: Rick Mann <email@hidden>
  • Date: Thu, 5 Aug 2010 14:24:05 -0700

My co-worker is experiencing an odd problem in our Core Data app (iOS 3.2). We have code that assigns one object to a property of another:

Foo* foo = instance of DerivedFoo;
Baz* baz = instance of DerivedBaz;

foo.myBaz = baz;

In this case, foo and baz are both Core Data entities with explicit class implementations defining the properties. myBaz is a CD relationship property of type Baz*. The actual instances of both foo and baz are of derived classes DerivedFoo and DerivedBaz.

When the assignment happens, we get an exception complaining about coercion. My co-worker isn't around, so I can't get the exact stack trace. I'm hoping someone has seen this and knows what I'm talking about. I'll post more details when he comes back.

Any ideas? Thanks!

--
Rick

_______________________________________________

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

  • Follow-Ups:
    • [SOLVED] Coercion exception assigning a Core Data property
      • From: Rick Mann <email@hidden>
  • Prev by Date: Re: Resolution of an NSImage(Rep)?
  • Next by Date: [SOLVED] Coercion exception assigning a Core Data property
  • Previous by thread: Re: Question about color
  • Next by thread: [SOLVED] Coercion exception assigning a Core Data property
  • Index(es):
    • Date
    • Thread