• 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: Core Data 10.5 Mapping error 134140. Troubleshooting, "Value Expressions"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Core Data 10.5 Mapping error 134140. Troubleshooting, "Value Expressions"?


  • Subject: re: Core Data 10.5 Mapping error 134140. Troubleshooting, "Value Expressions"?
  • From: Ben Trumbull <email@hidden>
  • Date: Sun, 28 Feb 2010 22:25:30 -0800

> In my latest model revision, I added a relationship between existing entities.  The value of nil would be fine, so I typed 'nil' in for "Value Expression" on each end.  The compiler swallowed it OK.  Also, I added a Date attribute, which I would like to default to NSDistantFuture, but since I didn't know how to enter that, I entered 'nil' there also.
>
> Should these entries work?

You don't need to set optional property values to nil.  For relationships, you probably want to use the default expression.

> Is there any documentation which defines the syntax to be used for "Value Expression"?  The two paragraphs at the bottom of this page [1] show a simple example but not much detail.

The value expressions are the same as NSPredicate expressions.

Also,

NSMigrationMissingMappingModelError              = 134140

- Ben

_______________________________________________

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

  • Prev by Date: Re: Where in the MVC should my code go?
  • Next by Date: Re: NSNull vs nil in NSManagedObject setValue: v forKey: k
  • Previous by thread: Re: Suppress or Fix Inverse Relationship Warnings (Mike Abdullah)
  • Next by thread: action for raise and lower baseline of textview
  • Index(es):
    • Date
    • Thread