« The case of the lost documentation | Main | WWDC ADA »

Core Data forbidden property

When I have a problem with some code I never think that it is a fault in the provided libraries or a “platform” issue, I just assume that it is my error.

After several hours trying to find why a simple Core Data model with 2 entities couldn’t be saved I found out that the problem was the name ( the NAME!! ) of a property.

The error message could have been something like: “Invalid property name” but no, instead I got this error when saving:

-[NSCFNumber _isKindOfEntity:]: selector not recognized

At least from my attempts, now I know that I can’t name a relationship property with the name “version”.

Where is the list of reserved property names? It seems it doesn’t exist!

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on May 3, 2006 10:53 PM.

The previous post in this blog was The case of the lost documentation.

The next post in this blog is WWDC ADA.

Many more can be found on the main index page or by looking through the archives.