• 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 derived property not recognized after save & reopen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data derived property not recognized after save & reopen


  • Subject: Re: Core Data derived property not recognized after save & reopen
  • From: David Catmull <email@hidden>
  • Date: Wed, 18 Nov 2009 19:12:20 -0800

On Nov 18, 2009, at 2:13 PM, Sean McBride wrote:
> What do you mean exactly by "derived properties"?  Are they transient?
> Are they in your xcdatamodel?  In any case, I believe your problem is
> that you can only fetch against properties that are in the persistent
> store ie in your xcdatamodel and not transient.

I subclassed NSManagedObject and just added year and month methods. What confuses me is the sequence of events that leads to the failure - it works after reopening the document, *until* I make a change.

In any case, I've gotten around this by dropping the derived property approach and using predicates that access the original date property directly.

--
David Catmull
email@hidden
http://www.uncommonplace.com/

_______________________________________________

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: 
 >Core Data derived property not recognized after save & reopen (From: David Catmull <email@hidden>)
 >Re: Core Data derived property not recognized after save & reopen (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: unable to select submenu item
  • Next by Date: Re: firstResponder KVO snow leopard crash; bug?
  • Previous by thread: Re: Core Data derived property not recognized after save & reopen
  • Next by thread: Vector images on Cocoa
  • Index(es):
    • Date
    • Thread