• 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
Core Data Predicate Bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data Predicate Bug?


  • Subject: Core Data Predicate Bug?
  • From: ALEXander <email@hidden>
  • Date: Sat, 16 May 2009 14:13:48 +0200

Hello,

I am currently developing a Core Data Application. I have an entity (set) with a boolean attribute 'isActive' (optional, non-transient, non-indexed, default NO). For some of my objects, this attribute is set to YES. There is another entity (control) with a to-one relationship to a set.

The problem occurs when saving and reopening a document: If I use a predicate in a fetch request for the entity control which contains a predicate format string like @"set.isActive == YES", no objects are returned. Before saving and reopening, the correct objects are returned. How can that happen? I know (by looking at the data with the pre-built core data entity interfaces from IB) that there are objects where that predicate is true.

To me, this is a bug. But of course, I hope to be wrong. One remedy is to issue a [[self managedObjectContext] save] command before doing the fetch, but this is very slow and therefore not suitable in my case. Just issuing processPendingChanges does not work.

Pointers to  a solution/workaround would be very much appreciated.

ALEXander.

_______________________________________________

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:
    • Re: Core Data Predicate Bug?
      • From: Jerry Krinock <email@hidden>
    • Re: Core Data Predicate Bug?
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: [iPhone] Settings Application...need an Image Picker
  • Next by Date: Re: Calling delegates explicitly
  • Previous by thread: Re: new NSTreeController bug in 10.5.7?
  • Next by thread: Re: Core Data Predicate Bug?
  • Index(es):
    • Date
    • Thread