Re: fetching a unique data set using core data
Re: fetching a unique data set using core data
- Subject: Re: fetching a unique data set using core data
- From: Andreas Mayer <email@hidden>
- Date: Sat, 13 Aug 2005 20:45:50 +0200
Am 13.08.2005 um 20:14 Uhr schrieb mmalcolm crawford:
then you can use array/set operators on the result, such as
@distinctUnionOfObjects:
Speaking of which: Are those array operators supposed to throw an
exception if there's an object missing?
Take this example from the page you quoted above:
[savingsAccount
valueForKeyPath:@”email@hidden”]
Now, say, one transaction does not have a payee assigned. In that
case @distinctUnionOfObjects does seem to throw an exception:
*** -[NSCFSet addObject:]: attempt to insert nil
What I would have expected instead is that I get back an array of all
existing objects.
Do I need to loop through the transactions myself or is there some
other way around this problem?
Andreas _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden