• 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 Fetches + Transient Properties + NSPredicateEditor = Sadness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness


  • Subject: Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness
  • From: Mike Abdullah <email@hidden>
  • Date: Thu, 23 Apr 2009 15:58:34 +0100


On 23 Apr 2009, at 15:03, Jerry Krinock wrote:


On 2009 Apr 23, at 05:18, Mike Abdullah wrote:

OK, so I'm trying to wrap my head around this. Let's say I build a predicate along the lines of:

fooPersistent == 123 && fooTransient == 456

And then use it in a fetch request. Does Core Data:

A) Pass that predicate straight to SQLite which fails because it can't find a fooTransient column.
B) Pass that predicate straight to SQLite which ignores fooTransient (presumably treating it as always evaluating to true).
C) Create a "fooPersistent == 123" predicate and pass that to SQLite.


Or of course D) something I've failed to conceive of which seems quite probable!

In my experience, before I read the documentation and learned not to put transient properties in my predicates, I found that fetches containing such predicates returned an empty array.

Ah, so that would be option A then I guess, if by "fail" we take it to be more "nothing matches the predicate." In which case, I guess it certainly would be quite a big change for Core Data to start handling transient attributes during fetches too.
_______________________________________________


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: 
 >Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness (From: Ben Trumbull <email@hidden>)
 >Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness (From: Mike Abdullah <email@hidden>)
 >Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness (From: "Melissa J. Turner" <email@hidden>)
 >Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness (From: Mike Abdullah <email@hidden>)
 >Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Accuracy of timers?
  • Next by Date: Re: How to make app login window to look like OS X user login window ?
  • Previous by thread: Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness
  • Next by thread: Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness
  • Index(es):
    • Date
    • Thread