Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness
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